diff --git a/src/common/utils/i18n/locales/en/users.json b/src/common/utils/i18n/locales/en/users.json index be73456..444f6a7 100644 --- a/src/common/utils/i18n/locales/en/users.json +++ b/src/common/utils/i18n/locales/en/users.json @@ -10,6 +10,7 @@ "markedComplete": "Marked task complete", "markedIncomplete": "Marked task incomplete", "tasks": "tasks", - "toComplete": "You have {{val}} tasks to complete." + "toComplete_one": "You have {{count}} task to complete.", + "toComplete_other": "You have {{count}} tasks to complete." } } diff --git a/src/common/utils/i18n/locales/es/users.json b/src/common/utils/i18n/locales/es/users.json index 743a290..cd44933 100644 --- a/src/common/utils/i18n/locales/es/users.json +++ b/src/common/utils/i18n/locales/es/users.json @@ -10,6 +10,7 @@ "markedComplete": "Tarea marcada completada", "markedIncomplete": "Tarea marcada como incompleta", "tasks": "tareas", - "toComplete": "Tienes {{val}} tarea para completar." + "toComplete_one": "Tienes {{count}} tarea para completar.", + "toComplete_other": "Tienes {{count}} tareas para completar." } } diff --git a/src/common/utils/i18n/locales/fr/users.json b/src/common/utils/i18n/locales/fr/users.json index 0df7345..ac5538d 100644 --- a/src/common/utils/i18n/locales/fr/users.json +++ b/src/common/utils/i18n/locales/fr/users.json @@ -10,6 +10,7 @@ "markedComplete": "Tâche marquée terminée", "markedIncomplete": "Tâche marquée incomplète", "tasks": "tâches", - "toComplete": "Vous avez {{val}} tâche à accomplir." + "toComplete_one": "Vous avez {{count}} tâche à accomplir.", + "toComplete_other": "Vous avez {{count}} tâches à accomplir." } } diff --git a/src/pages/UsersPage/components/UserTasksCard.tsx b/src/pages/UsersPage/components/UserTasksCard.tsx index 0dff799..1868a79 100644 --- a/src/pages/UsersPage/components/UserTasksCard.tsx +++ b/src/pages/UsersPage/components/UserTasksCard.tsx @@ -45,7 +45,7 @@ const UserTasksCard = ({ return t('task.allComplete', { ns: 'users' }); } - return t('task.toComplete', { ns: 'users', val: incompleteTasks.length }); + return t('task.toComplete', { ns: 'users', count: incompleteTasks.length }); }, [error, incompleteTasks, t]); return (