Skip to content

Commit f920fa0

Browse files
committed
Add translations
1 parent fb34703 commit f920fa0

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

src/i18n/components.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,5 +66,7 @@ export const translations = (t: TFunction<string, string>) => ({
6666
choices_count: t('cc.validation.choices_count').toString(),
6767
required: t('cc.validation.required').toString(),
6868
min_length: t('cc.validation.min_length').toString(),
69+
min_choices_count: t('cc.validation.min_choices_count').toString(),
70+
at_least_one: t('cc.validation.at_least_one').toString(),
6971
},
7072
})

src/i18n/locales/ca.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,9 @@
7070
"validation": {
7171
"choices_count": "Has de seleccionar {{ count }} opcions",
7272
"min_length": "Aquest camp ha de tenir com a mínim {{ min }} caràcters",
73-
"required": "Aquest camp és obligatori"
73+
"required": "Aquest camp és obligatori",
74+
"min_choices_count": "Selecciona un mínim de {{ count }} opcions",
75+
"at_least_one": "Has de seleccionar almenys una opció"
7476
},
7577
"vote": {
7678
"abstain": "Abstenció",

src/i18n/locales/es.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,9 @@
7070
"validation": {
7171
"choices_count": "Debes seleccionar {{ count }} opciones",
7272
"min_length": "Este campo debe tener al menos {{ min }} caracteres",
73-
"required": "Este campo es obligatorio"
73+
"required": "Este campo es obligatorio",
74+
"min_choices_count": "Selecciona un minimo de {{ count }} opciones",
75+
"at_least_one": "Tienes q seleccionar al menos una opción"
7476
},
7577
"vote": {
7678
"abstain": "Abstenerse",

0 commit comments

Comments
 (0)