Skip to content

Commit

Permalink
Merge pull request #634 from CherifAmine/originbbbeasy/fixMaxSize_pre…
Browse files Browse the repository at this point in the history
…setName
  • Loading branch information
GhaziTriki authored May 4, 2023
2 parents a28b29d + cc32389 commit 43d0071
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bbbeasy-frontend/src/components/AddPresetForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,10 @@ export const AddPresetForm = (props: Props) => {
required: true,
message: <Trans i18nKey="name.required" />,
},
{
max: 64,
message: <Trans i18nKey="preset_name.maxSize" />,
},
]}
>
<Input placeholder={t('name.label')} />
Expand Down
3 changes: 3 additions & 0 deletions bbbeasy-frontend/src/locale/ar-TN.json
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,9 @@
"required_status": "الرجاء اختيار حالة",
"no_changes": "لا توجد تغييرات أجريت",
"new_preset": "إعداد مسبق جديد",
"preset_name": {
"maxSize": "لا يجب أن يكون اسم الإعداد المسبق أطول من 64 حرفًا"
},
"search_preset": "البحث في إعداداتي المسبقة",
"rename": "إعادة التسمية",
"delete_preset_confirm": "هل أنت متأكد من حذف هذا الإعداد المسبق ؟",
Expand Down
3 changes: 3 additions & 0 deletions bbbeasy-frontend/src/locale/en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,9 @@
"no_changes": "No changes made",

"new_preset": "New Preset",
"preset_name": {
"maxSize": "Preset name cannot be longer than 64 characters"
},
"upload_img": "Upload jpg, jpeg, png only",
"search_preset": "Search all my presets",
"rename": "Rename",
Expand Down
3 changes: 3 additions & 0 deletions bbbeasy-frontend/src/locale/fr-FR.json
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,9 @@
"required_status": "Veuillez sélectionner une status",
"no_changes": "Aucune modification n'a été effectuée",
"new_preset": "Nouveau préréglage",
"preset_name": {
"maxSize": "Le nom du préréglage ne peut pas dépasser 64 caractères"
},
"search_preset": "Chercher préréglage",
"rename": "Renommer",
"delete_preset_confirm": "Êtes-vous sûr de vouloir supprimer ce préréglage ?",
Expand Down

0 comments on commit 43d0071

Please sign in to comment.