-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: passage tous les textes côté front sur i18nifty
TODO: prévoir nettoyage des textes non-utilisés côté symfony
- Loading branch information
Showing
42 changed files
with
636 additions
and
272 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
assets/entrepot/pages/communities/CommunityList/CommunityList.locale.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import { declareComponentKeys } from "i18nifty"; | ||
import { Translations } from "../../../../i18n/types"; | ||
|
||
const { i18n } = declareComponentKeys< | ||
| "title" | ||
| { K: "community_technical_name"; P: { name?: string }; R: string } | ||
| "join" | ||
| { K: "modal.title"; P: { name?: string }; R: string } | ||
| "modal.message" | ||
| { K: "success_message.title"; P: { name?: string }; R: string } | ||
| "success_message.description" | ||
>()("CommunityList"); | ||
export type I18n = typeof i18n; | ||
|
||
export const CommunityListFrTranslations: Translations<"fr">["CommunityList"] = { | ||
title: "Rejoindre un espace de travail existant", | ||
community_technical_name: ({ name }) => `Nom technique : ${name}`, | ||
join: "Rejoindre", | ||
"modal.title": ({ name }) => `Votre demande à rejoindre ${name} a été envoyée.`, | ||
"modal.message": "Message (optionnel)", | ||
"success_message.title": ({ name }) => `Votre demande à rejoindre ${name} a été envoyée.`, | ||
"success_message.description": "Un accusé-réception vous a également été adressé.", | ||
}; | ||
|
||
export const CommunityListEnTranslations: Translations<"en">["CommunityList"] = { | ||
title: undefined, | ||
community_technical_name: undefined, | ||
join: undefined, | ||
"modal.title": undefined, | ||
"modal.message": undefined, | ||
"success_message.title": undefined, | ||
"success_message.description": undefined, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...tasheetNew/DatasheetUploadForm.locale.tsx → ...UploadForm/DatasheetUploadForm.locale.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
65 changes: 65 additions & 0 deletions
65
...s/datasheet/DatasheetNew/DatasheetUploadIntegration/DatasheetUploadIntegration.locale.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
import { declareComponentKeys } from "i18nifty"; | ||
import { Translations } from "../../../../../i18n/types"; | ||
|
||
const { i18n } = declareComponentKeys< | ||
| { K: "step_title"; P: { step_name: string }; R: string } | ||
| { K: "step_status_text"; P: { step_status: string }; R: string } | ||
| "data_integration_in_progress" | ||
| "long_operation_information" | ||
| "continue_browsing_data_not_ready" | ||
| "view_datasheet" | ||
| "check_error_report" | ||
| "back_to_datasheet_list" | ||
| "integration_page.title" | ||
>()("DatasheetUploadIntegration"); | ||
export type I18n = typeof i18n; | ||
|
||
export const DatasheetUploadIntegrationFrTranslations: Translations<"fr">["DatasheetUploadIntegration"] = { | ||
step_title: ({ step_name }) => { | ||
switch (step_name) { | ||
case "send_files_api": | ||
return "Chargement des fichiers"; | ||
case "wait_checks": | ||
return "Vérifications standard et vecteur"; | ||
case "integration_processing": | ||
return "Intégration en base de données"; | ||
default: | ||
return "Étape inconnue"; | ||
} | ||
}, | ||
step_status_text: ({ step_status }) => { | ||
switch (step_status) { | ||
case "in_progress": | ||
return "En cours"; | ||
case "successful": | ||
return "Succès"; | ||
case "failed": | ||
return "Echec"; | ||
case "waiting": | ||
return "En attente"; | ||
default: | ||
return "Statut inconnu"; | ||
} | ||
}, | ||
data_integration_in_progress: "Vos données vecteur sont en cours de dépôt", | ||
long_operation_information: "Les opérations suivantes peuvent prendre quelques minutes. Merci pour votre patience.", | ||
continue_browsing_data_not_ready: "Vous pouvez maintenant poursuivre votre navigation même si vos données ne sont pas encore prêtes.", | ||
view_datasheet: "Consulter la fiche de données", | ||
check_error_report: "Voir le rapport d’erreur", | ||
back_to_datasheet_list: "Revenir à mes données", | ||
|
||
"integration_page.title": "Intégration des données", | ||
}; | ||
|
||
export const DatasheetUploadIntegrationEnTranslations: Translations<"en">["DatasheetUploadIntegration"] = { | ||
step_title: undefined, | ||
step_status_text: undefined, | ||
data_integration_in_progress: undefined, | ||
long_operation_information: undefined, | ||
continue_browsing_data_not_ready: undefined, | ||
view_datasheet: undefined, | ||
check_error_report: undefined, | ||
back_to_datasheet_list: undefined, | ||
|
||
"integration_page.title": undefined, | ||
}; |
Oops, something went wrong.