Skip to content

Commit

Permalink
#538 - wip - add translations
Browse files Browse the repository at this point in the history
  • Loading branch information
quentinovega committed Aug 9, 2023
1 parent 995f45c commit d3280e1
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,14 @@ export const DisplayForm = (props: UpdateFormProps) => {
{value: 'environment', label: translate('display.environment.label')},
{value: 'default', label: translate('display.default.label')},
],
label: translate('environment-mode.is-private.label'),
help: translate('environment-mode.is-private.help')
label: translate('display-mode.label'),
help: translate('display-mode.help')
},
//TODO: draw a custom component with is default flag
environments: {
type: type.string,
array: true,
label: translate('environment-mode.environments.label'),
help: translate('environment-mode.environments.help'),
label: translate('display-mode.environments.label'),
visible: ({ rawValues }) => rawValues.isPrivate,
constraints: [
constraints.required('constraints.required.value')
Expand Down
8 changes: 7 additions & 1 deletion daikoku/javascript/src/locales/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -1342,6 +1342,12 @@
"motivation.form.sample.button.label": "Test",
"sub.meta.modal.admin.custom.name.label": "Custom key name",
"sub.meta.modal.admin.custom.name.help": "this custom name will only be visible to the admin team",
"documentation.add.page.btn.label": "Add page"
"documentation.add.page.btn.label": "Add page",
"DisplayMode": "Display mode",
"display.environment.label": "Environment",
"display.default.label": "Default",
"display-mode.label": "Display mode",
"display-mode.help": "The environment mode will force you to create avalible environments. The api usage plans needs to match one of the avalible environments.",
"display-mode.environments.label": "Available environments"

}
8 changes: 7 additions & 1 deletion daikoku/javascript/src/locales/fr/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -1345,5 +1345,11 @@
"motivation.form.sample.button.label": "Tester",
"sub.meta.modal.admin.custom.name.label": "Nom personnalisé de la clé",
"sub.meta.modal.admin.custom.name.help": "ce nom personnalisé ne sera visible que de l'équipe d'administration",
"documentation.add.page.btn.label": "Ajouter une page"
"documentation.add.page.btn.label": "Ajouter une page",
"DisplayMode": "Affichage",
"display.environment.label": "Environnement",
"display.default.label": "Défaut",
"display-mode.label": "Mode d'affichage",
"display-mode.help": "Le mode environnement vous obligera à créer des environnements disponibles. Les plans d'utilisation de l'API doivent correspondre à l'un des environnements disponibles.",
"display-mode.environments.label": "Environnements disponibles"
}

0 comments on commit d3280e1

Please sign in to comment.