Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

70 Plural translations #77

Merged
merged 1 commit into from
Nov 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/common/utils/i18n/locales/en/users.json
Original file line number Diff line number Diff line change
Expand Up @@ -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."
}
}
3 changes: 2 additions & 1 deletion src/common/utils/i18n/locales/es/users.json
Original file line number Diff line number Diff line change
Expand Up @@ -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."
}
}
3 changes: 2 additions & 1 deletion src/common/utils/i18n/locales/fr/users.json
Original file line number Diff line number Diff line change
Expand Up @@ -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."
}
}
2 changes: 1 addition & 1 deletion src/pages/UsersPage/components/UserTasksCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down