diff --git a/services/web/frontend/extracted-translations.json b/services/web/frontend/extracted-translations.json index 39287bccea..8e50237c37 100644 --- a/services/web/frontend/extracted-translations.json +++ b/services/web/frontend/extracted-translations.json @@ -321,9 +321,9 @@ "collaborator_chat": "", "collabs_per_proj": "", "collabs_per_proj_multiple": "", + "collabs_per_proj_plural": "", "collabs_per_proj_plus": "", - "collabs_per_proj_single": "", - "collabs_per_proj_single_plus": "", + "collabs_per_proj_plus_plural": "", "collapse": "", "column_width": "", "column_width_is_custom_click_to_resize": "", @@ -1815,13 +1815,14 @@ "show_outline": "", "show_version_history": "", "show_x_more_projects": "", - "showing_1_result": "", - "showing_1_result_of_total": "", + "show_x_more_projects_plural": "", "showing_pdf_preview_with_inverted_colors": "", "showing_x_out_of_n_projects": "", "showing_x_out_of_n_users": "", "showing_x_results": "", "showing_x_results_of_total": "", + "showing_x_results_of_total_plural": "", + "showing_x_results_plural": "", "sidebar": "", "sign_up": "", "simple_search_mode": "", diff --git a/services/web/frontend/js/features/pdf-preview/components/compile-timeout-paywall-modal.tsx b/services/web/frontend/js/features/pdf-preview/components/compile-timeout-paywall-modal.tsx index b0b2ec549c..2855445737 100644 --- a/services/web/frontend/js/features/pdf-preview/components/compile-timeout-paywall-modal.tsx +++ b/services/web/frontend/js/features/pdf-preview/components/compile-timeout-paywall-modal.tsx @@ -191,9 +191,7 @@ export function CompileTimeoutPaywallModal({ {t('compile_timeout_modal_intro')}

- - {t('collabs_per_proj', { collabcount: 10 })} - + {t('collabs_per_proj', { count: 10 })} {t('track_changes')} {t('github_integration')} {t('and_much_more')} diff --git a/services/web/frontend/js/features/project-list/components/load-more.tsx b/services/web/frontend/js/features/project-list/components/load-more.tsx index 3843a89a19..8600b57ccf 100644 --- a/services/web/frontend/js/features/project-list/components/load-more.tsx +++ b/services/web/frontend/js/features/project-list/components/load-more.tsx @@ -21,7 +21,7 @@ export default function LoadMore() { className="project-list-load-more-button" onClick={() => loadMoreProjects()} > - {t('show_x_more_projects', { x: loadMoreCount })} + {t('show_x_more_projects', { count: loadMoreCount })} ) : null} diff --git a/services/web/frontend/js/features/subscription/components/dashboard/states/active/change-plan/modals/change-to-group-modal.tsx b/services/web/frontend/js/features/subscription/components/dashboard/states/active/change-plan/modals/change-to-group-modal.tsx index eaf4b6487b..bd9b1698d7 100644 --- a/services/web/frontend/js/features/subscription/components/dashboard/states/active/change-plan/modals/change-to-group-modal.tsx +++ b/services/web/frontend/js/features/subscription/components/dashboard/states/active/change-plan/modals/change-to-group-modal.tsx @@ -38,13 +38,7 @@ function GroupPlanCollaboratorCount({ planCode }: { planCode: string }) { const { t } = useTranslation() if (planCode === 'collaborator') { - return ( - <> - {t('collabs_per_proj', { - collabcount: 10, - })} - - ) + return <>{t('collabs_per_proj', { count: 10 })} } else if (planCode === 'professional') { return <>{t('unlimited_collabs')} } diff --git a/services/web/frontend/js/shared/components/upgrade-prompt.tsx b/services/web/frontend/js/shared/components/upgrade-prompt.tsx index 94cf5063c6..867c24bee1 100644 --- a/services/web/frontend/js/shared/components/upgrade-prompt.tsx +++ b/services/web/frontend/js/shared/components/upgrade-prompt.tsx @@ -107,7 +107,7 @@ export function UpgradePrompt({ {t('24x_more_compile_time')} - {t('collabs_per_proj', { collabcount: 10 })} + {t('collabs_per_proj', { count: 10 })} {t('unlimited_document_history')} @@ -145,7 +145,7 @@ export function UpgradePrompt({ {t('basic_compile_time')} - {t('collabs_per_proj_single', { collabcount: 1 })} + {t('collabs_per_proj', { count: 1 })} {t('limited_document_history')} diff --git a/services/web/locales/cs.json b/services/web/locales/cs.json index 361f273894..a5b77213d9 100644 --- a/services/web/locales/cs.json +++ b/services/web/locales/cs.json @@ -43,7 +43,8 @@ "close": "Zavřít", "collaboration": "Spolupráce", "collaborator": "Collaborator", - "collabs_per_proj": "__collabcount__ spolupracovníků na projektu", + "collabs_per_proj": "__count__ spolupracovník na projektu", + "collabs_per_proj_plural": "__count__ spolupracovníků na projektu", "comment": "Komentář", "common": "Běžné", "compiler": "Kompilátor", diff --git a/services/web/locales/da.json b/services/web/locales/da.json index d9889832fd..8044e5668e 100644 --- a/services/web/locales/da.json +++ b/services/web/locales/da.json @@ -268,8 +268,8 @@ "collaboration": "Samarbejde", "collaborator": "Samarbejdspartner", "collabratec_account_not_registered": "IEEE Collabratec™ konto er ikke registeret. Forbind til Overleaf from IEEE Collabratec™ eller log ind med en anden konto.", - "collabs_per_proj": "__collabcount__ samarbejdspartnere per projekt", - "collabs_per_proj_single": "__collabcount__ samarbejdspartnere per projekt", + "collabs_per_proj": "__count__ samarbejdspartner per projekt", + "collabs_per_proj_plural": "__count__ samarbejdspartnere per projekt", "collapse": "Fold sammen", "column_width": "Kolonnebredde", "column_width_is_custom_click_to_resize": "Kolonnebredden er brugerdefineret. Klik for at ændre", @@ -1100,7 +1100,8 @@ "n_more_updates_above_plural": "__count__ flere opdateringer ovenover", "n_more_updates_below": "__count__ mere opdatering nedenunder", "n_more_updates_below_plural": "__count__ flere opdateringer nedenunder", - "n_users": "__userCount__ brugere", + "n_users": "__count__ bruger", + "n_users_plural": "__count__ brugere", "name": "Navn", "name_usage_explanation": "Dit navn vil blive vist til dine samarbejdspartnere (så de ved hvem de arbejder sammen med).", "native": "Indbygget", @@ -1643,12 +1644,13 @@ "show_local_file_contents": "Vis lokalt filindhold", "show_more": "vis mere", "show_outline": "Vis disposition", - "show_x_more_projects": "Vis __x__ flere projekter", - "showing_1_result": "Viser 1 resultat", - "showing_1_result_of_total": "Viser 1 resultat ud af __total__", + "show_x_more_projects": "Vis __count__ mere projekt", + "show_x_more_projects_plural": "Vis __count__ flere projekter", "showing_x_out_of_n_projects": "Viser __x__ af __n__ projekter.", - "showing_x_results": "Viser __x__ resultater", - "showing_x_results_of_total": "Viser __x__ resultater ud af __total__", + "showing_x_results": "Viser __count__ resultat", + "showing_x_results_of_total": "Viser __count__ resultat ud af __total__", + "showing_x_results_of_total_plural": "Viser __count__ resultater ud af __total__", + "showing_x_results_plural": "Viser __count__ resultater", "sign_up": "Opret konto", "sign_up_for_free": "Opret gratis konto", "sign_up_for_free_account": "Opret gratis konto og modtag regelmæssige opdateringer", diff --git a/services/web/locales/de.json b/services/web/locales/de.json index c1ff998f9f..f3646dd962 100644 --- a/services/web/locales/de.json +++ b/services/web/locales/de.json @@ -328,8 +328,8 @@ "collaboration": "Zusammenarbeit", "collaborator": "Mitarbeiter", "collabratec_account_not_registered": "IEEE-Collabratec™-Konto nicht registriert. Bitte verbinde dich mit Overleaf von IEEE Collabratec™ oder melde dich mit einem anderen Konto an.", - "collabs_per_proj": "__collabcount__ Mitarbeiter pro Projekt", - "collabs_per_proj_single": "__collabcount__ Mitarbeiter pro Projekt", + "collabs_per_proj": "__count__ Mitarbeiter pro Projekt", + "collabs_per_proj_plural": "__count__ Mitarbeiter pro Projekt", "collapse": "Einklappen", "comment": "Kommentar", "comment_only": "Nur Kommentare", @@ -1360,12 +1360,13 @@ "show_less": "Weniger anzeigen", "show_live_equation_previews_while_typing": "Live-Gleichungsvorschau beim Tippen anzeigen", "show_outline": "Dateigliederung anzeigen", - "show_x_more_projects": "__x__ weitere Projekte anzeigen", - "showing_1_result": "1 Ergebnis wird angezeigt", - "showing_1_result_of_total": "Zeige 1 Ergebnis von __total__", + "show_x_more_projects": "__count__ weiteres Projekt anzeigen", + "show_x_more_projects_plural": "__count__ weitere Projekte anzeigen", "showing_x_out_of_n_projects": "Es werden __x__ von __n__ Projekten angezeigt.", - "showing_x_results": "Es werden __x__ Ergebnisse angezeigt", - "showing_x_results_of_total": "Es werden __x__ Ergebnisse von __total__ angezeigt", + "showing_x_results": "Es wird __count__ Ergebnis angezeigt", + "showing_x_results_of_total": "Es wird __count__ Ergebnis von __total__ angezeigt", + "showing_x_results_of_total_plural": "Es werden __count__ Ergebnisse von __total__ angezeigt", + "showing_x_results_plural": "Es werden __count__ Ergebnisse angezeigt", "single_sign_on_sso": "Single Sign-On (SSO)", "site_description": "Ein einfach bedienbarer Online-LaTeX-Editor. Keine Installation notwendig, Zusammenarbeit in Echtzeit, Versionskontrolle, Hunderte von LaTeX-Vorlagen und mehr", "skip_to_content": "Zum Inhalt springen", diff --git a/services/web/locales/en.json b/services/web/locales/en.json index b95c707f77..3d26ac21ce 100644 --- a/services/web/locales/en.json +++ b/services/web/locales/en.json @@ -423,11 +423,11 @@ "collaborators_per_project": "Collaborators per project", "collaborators_per_project_explanation": "The number of editors and reviewers you can invite to collaborate on a project with you. The limit is per project and you can invite different people to different projects.", "collabratec_account_not_registered": "IEEE Collabratec™ account not registered. Please connect to Overleaf from IEEE Collabratec™ or log in with a different account.", - "collabs_per_proj": "__collabcount__ collaborators per project", + "collabs_per_proj": "__count__ collaborator per project", "collabs_per_proj_multiple": "Multiple collaborators per project", - "collabs_per_proj_plus": "__collabcount__ collaborators per project, plus:", - "collabs_per_proj_single": "__collabcount__ collaborator per project", - "collabs_per_proj_single_plus": "__collabcount__ collaborator per project, plus:", + "collabs_per_proj_plural": "__count__ collaborators per project", + "collabs_per_proj_plus": "__count__ collaborator per project, plus:", + "collabs_per_proj_plus_plural": "__count__ collaborators per project, plus:", "collapse": "Collapse", "column_width": "Column width", "column_width_is_custom_click_to_resize": "Column width is custom. Click to resize", @@ -1611,7 +1611,8 @@ "n_more_updates_above_plural": "__count__ more updates above", "n_more_updates_below": "__count__ more update below", "n_more_updates_below_plural": "__count__ more updates below", - "n_users": "__userCount__ users", + "n_users": "__count__ user", + "n_users_plural": "__count__ users", "name": "Name", "name_usage_explanation": "Your name will be displayed to your collaborators (so they know who they’re working with).", "native": "Native", @@ -1727,7 +1728,6 @@ "one_free_collab": "One free collaborator", "one_per_project": "1 per project", "one_step_away_from_professional_features": "You are one step away from accessing <0>Overleaf premium features!", - "one_user": "1 user", "ongoing_experiments": "Ongoing experiments", "online_latex_editor": "Online LaTeX Editor", "only_add_people_who_dont_yet_have_access": "Only add people who don’t yet have access.", @@ -2360,14 +2360,15 @@ "show_more": "show more", "show_outline": "Show File outline", "show_version_history": "Show version history", - "show_x_more_projects": "Show __x__ more projects", - "showing_1_result": "Showing 1 result", - "showing_1_result_of_total": "Showing 1 result of __total__", + "show_x_more_projects": "Show __count__ more project", + "show_x_more_projects_plural": "Show __count__ more projects", "showing_pdf_preview_with_inverted_colors": "Showing PDF preview with inverted colors", "showing_x_out_of_n_projects": "Showing __x__ out of __n__ projects.", "showing_x_out_of_n_users": "Showing __x__ out of __n__ users", - "showing_x_results": "Showing __x__ results", - "showing_x_results_of_total": "Showing __x__ results of __total__", + "showing_x_results": "Showing __count__ result", + "showing_x_results_of_total": "Showing __count__ result of __total__", + "showing_x_results_of_total_plural": "Showing __count__ results of __total__", + "showing_x_results_plural": "Showing __count__ results", "sidebar": "Sidebar", "sign_up": "Sign up", "sign_up_for_free": "Sign up for free", diff --git a/services/web/locales/es.json b/services/web/locales/es.json index 139829174e..0b76f61b51 100644 --- a/services/web/locales/es.json +++ b/services/web/locales/es.json @@ -218,7 +218,8 @@ "cn": "Chino (simplificado)", "collaboration": "Colaboración", "collaborator": "Colaborador", - "collabs_per_proj": "__collabcount__ colaboradores por proyecto", + "collabs_per_proj": "__count__ colaborador por proyecto", + "collabs_per_proj_plural": "__count__ colaboradores por proyecto", "comment": "Comentar", "common": "Común", "compile_error_entry_description": "Un error ha impedido la compilación de este proyecto", diff --git a/services/web/locales/fi.json b/services/web/locales/fi.json index 22c37a5017..8a5b7cf9da 100644 --- a/services/web/locales/fi.json +++ b/services/web/locales/fi.json @@ -45,7 +45,8 @@ "cn": "Kiina (Yksinkertainen)", "collaboration": "Yhteistyö", "collaborator": "Työtoveri", - "collabs_per_proj": "__collabcount__ työtoveria per projekti", + "collabs_per_proj": "__count__ työtoveri per projekti", + "collabs_per_proj_plural": "__count__ työtoveria per projekti", "comment": "Kommentoi", "common": "Yleisiä", "compiler": "Kääntäjä", diff --git a/services/web/locales/fr.json b/services/web/locales/fr.json index b88aa32b0d..afa5216001 100644 --- a/services/web/locales/fr.json +++ b/services/web/locales/fr.json @@ -221,8 +221,8 @@ "collaboration": "Collaboration", "collaborator": "Collaborateur·rice", "collabratec_account_not_registered": "Pas de compte IEEE Collabratec™ enregistré. Veuillez vous connecter à Overleaf via IEEE Collabratec™ ou bien vous connecter avec un compte différent.", - "collabs_per_proj": "__collabcount__ collaborateur·rice·s par projet", - "collabs_per_proj_single": "__collabcount__ collaborateurs par projet", + "collabs_per_proj": "__count__ collaborateur·rice par projet", + "collabs_per_proj_plural": "__count__ collaborateur·rice·s par projet", "collapse": "Replier", "column_width": "Largeur de colonne", "column_width_is_custom_click_to_resize": "La largeur des colonnes est personnalisée. Cliquez pour redimensionner", @@ -984,11 +984,11 @@ "sharelatex_beta_program": "Programme de bêta __appName__", "show_less": "voir moins", "show_outline": "Afficher la structure du fichier", - "showing_1_result": "Affiche 1 résultat", - "showing_1_result_of_total": "Affiche 1 résultat sur __total__", "showing_x_out_of_n_projects": "Affiche __x__ sur __n__ projets.", - "showing_x_results": "Affiche __x__ résultats", - "showing_x_results_of_total": "Affiche __x__ résultats sur __total__", + "showing_x_results": "Affiche __count__ résultat", + "showing_x_results_of_total": "Affiche __count__ résultat sur __total__", + "showing_x_results_of_total_plural": "Affiche __count__ résultats sur __total__", + "showing_x_results_plural": "Affiche __count__ résultats", "sign_up": "S’inscrire", "site_description": "Un éditeur LaTeX en ligne facile à utiliser. Pas d’installation, collaboration en temps réel, gestion des versions, des centaines de modèles de documents LaTeX, et plus encore.", "skip_to_content": "Aller au contenu", diff --git a/services/web/locales/it.json b/services/web/locales/it.json index 9b9f32960c..26b5114727 100644 --- a/services/web/locales/it.json +++ b/services/web/locales/it.json @@ -56,7 +56,8 @@ "cn": "Cinese (Semplificato)", "collaboration": "Collaborazione", "collaborator": "Collaboratore", - "collabs_per_proj": "__collabcount__ collaboratori per progetto", + "collabs_per_proj": "__count__ collaboratore per progetto", + "collabs_per_proj_plural": "__count__ collaboratori per progetto", "comment": "Commento", "common": "Comune", "compile_larger_projects": "Compila progetti più grandi", diff --git a/services/web/locales/ja.json b/services/web/locales/ja.json index 45af98bff0..9f833c15be 100644 --- a/services/web/locales/ja.json +++ b/services/web/locales/ja.json @@ -75,7 +75,7 @@ "cn": "中国語(簡体字)", "collaboration": "コラボレーション", "collaborator": "共同編集者", - "collabs_per_proj": "プロジェクトあたりの __collabcount__ 共同編集者", + "collabs_per_proj": "プロジェクトあたりの __count__ 共同編集者", "comment": "コメント", "common": "共通", "compile_larger_projects": "大きなプロジェクトをコンパイル", diff --git a/services/web/locales/ko.json b/services/web/locales/ko.json index 51a0e75b73..f1fa363ed6 100644 --- a/services/web/locales/ko.json +++ b/services/web/locales/ko.json @@ -91,7 +91,7 @@ "code_check_failed_explanation": "자동 컴파일 실행 전에 에러를 수정해야합니다.", "collaboration": "콜라보레이션", "collaborator": "콜라보레이터", - "collabs_per_proj": "프로젝트 당 __collabcount__명까지 공유 가능", + "collabs_per_proj": "프로젝트 당 __count__명까지 공유 가능", "comment": "댓글", "common": "일반", "compile_larger_projects": "큰 프로젝트 컴파일", diff --git a/services/web/locales/nl.json b/services/web/locales/nl.json index d2dac50096..8242939708 100644 --- a/services/web/locales/nl.json +++ b/services/web/locales/nl.json @@ -91,7 +91,8 @@ "cn": "Chinees (vereenvoudigd)", "collaboration": "Samenwerking", "collaborator": "Bijdrager", - "collabs_per_proj": "__collabcount__ bijdragers per project", + "collabs_per_proj": "__count__ bijdrager per project", + "collabs_per_proj_plural": "__count__ bijdragers per project", "comment": "Reageren", "common": "Veelvoorkomend", "compact": "Compact", diff --git a/services/web/locales/no.json b/services/web/locales/no.json index 0623f4ecb9..e5c2148f32 100644 --- a/services/web/locales/no.json +++ b/services/web/locales/no.json @@ -57,7 +57,8 @@ "cn": "Kinesisk (Forenklet)", "collaboration": "Samarbeid", "collaborator": "Samarbeidspartner", - "collabs_per_proj": "__collabcount__ samarbeidspartnere per prosjekt", + "collabs_per_proj": "__count__ samarbeidspartner per prosjekt", + "collabs_per_proj_plural": "__count__ samarbeidspartnere per prosjekt", "comment": "Kommenter", "common": "Vanilige", "compile_larger_projects": "Kompiler Større Prosjekter", diff --git a/services/web/locales/pl.json b/services/web/locales/pl.json index ba058b7523..f15de3aa75 100644 --- a/services/web/locales/pl.json +++ b/services/web/locales/pl.json @@ -30,7 +30,8 @@ "clearing": "Czyszczenie", "click_here_to_view_sl_in_lng": "Kliknij tutaj, żeby używać __appName__ w <0>__lngName__m", "collaborator": "Współpracownik", - "collabs_per_proj": "__collabcount__ współpracowników na projekt", + "collabs_per_proj": "__count__ współpracownik na projekt", + "collabs_per_proj_plural": "__count__ współpracowników na projekt", "comment": "Skomentuj", "common": "Wspólne", "compiler": "Kompilator", diff --git a/services/web/locales/pt.json b/services/web/locales/pt.json index cca767780a..4e615d99e2 100644 --- a/services/web/locales/pt.json +++ b/services/web/locales/pt.json @@ -106,7 +106,8 @@ "code_check_failed_explanation": "Seu código contém erros que precisam ser corrigidos antes de rodar a auto-compilação", "collaboration": "Colaboração", "collaborator": "Colaborador", - "collabs_per_proj": "__collabcount__ colaboradores por projeto", + "collabs_per_proj": "__count__ colaborador por projeto", + "collabs_per_proj_plural": "__count__ colaboradores por projeto", "comment": "Comentário", "common": "Comum", "compact": "Compacto", diff --git a/services/web/locales/ru.json b/services/web/locales/ru.json index db98486d06..7ce5b15e70 100644 --- a/services/web/locales/ru.json +++ b/services/web/locales/ru.json @@ -88,7 +88,7 @@ "cn": "Китайский (упрощённый)", "collaboration": "Совместная разработка", "collaborator": "Совместная работа", - "collabs_per_proj": "Максимальное число соавторов на проект: __collabcount__", + "collabs_per_proj": "Максимальное число соавторов на проект: __count__", "comment": "Комментарии", "common": "Общие", "compile_larger_projects": "Компиляция больших проектов", diff --git a/services/web/locales/sv.json b/services/web/locales/sv.json index c7367e460f..ea3b86d5a3 100644 --- a/services/web/locales/sv.json +++ b/services/web/locales/sv.json @@ -139,8 +139,8 @@ "collaborate_online_and_offline": "Samarbeta online och offline, med ditt eget arbetsflöde", "collaboration": "Samarbete", "collaborator": "Samarbetare", - "collabs_per_proj": "__collabcount__ samarbetare per projekt", - "collabs_per_proj_single": "__collabcount__ medarbetare per projekt", + "collabs_per_proj": "__count__ samarbetare per projekt", + "collabs_per_proj_plural": "__count__ samarbetare per projekt", "collapse": "Kontrahera", "comment": "Kommentar", "common": "Vanliga", diff --git a/services/web/locales/tr.json b/services/web/locales/tr.json index 0f91220a7f..62582ffce2 100644 --- a/services/web/locales/tr.json +++ b/services/web/locales/tr.json @@ -60,7 +60,8 @@ "cn": "Çince (Basitleştirilmiş)", "collaboration": "İş birliği", "collaborator": "İş ortağı", - "collabs_per_proj": "her bir proje için __collabcount__ iş ortağı", + "collabs_per_proj": "her bir proje için __count__ iş ortağı", + "collabs_per_proj_plural": "her bir proje için __count__ iş ortağı", "comment": "Yorumlar", "common": "Belirli", "compiler": "Derleyici", diff --git a/services/web/locales/zh-CN.json b/services/web/locales/zh-CN.json index 4cf1c05a53..0234e9037f 100644 --- a/services/web/locales/zh-CN.json +++ b/services/web/locales/zh-CN.json @@ -311,8 +311,7 @@ "collaborator": "合作者", "collaborator_chat": "协作者聊天", "collabratec_account_not_registered": "未注册 IEEE Collabratec™ 帐户。请从IEEE Collabratec™连接到Overleaf 或者使用其他帐户登录。", - "collabs_per_proj": "每个项目 __collabcount__ 个合作者", - "collabs_per_proj_single": "__collabcount__ 个合作者每个项目", + "collabs_per_proj": "每个项目 __count__ 个合作者", "collapse": "合上", "column_width": "列宽", "column_width_is_custom_click_to_resize": "列宽为默认值,单击以调整大小", @@ -1266,7 +1265,7 @@ "n_more_updates_above_plural": "__count__处更新在上方", "n_more_updates_below": "__count__处更新在下方", "n_more_updates_below_plural": "__count__处更新在下方", - "n_users": "__userCount__ 个用户", + "n_users": "__count__ 个用户", "name": "名字", "name_usage_explanation": "您的名字将显示给您的合作者(以便他们知道正在与谁合作)。", "native": "本机", @@ -1874,12 +1873,10 @@ "show_more": "显示更多", "show_outline": "显示文件大纲", "show_version_history": "显示版本历史记录", - "show_x_more_projects": "再显示 __x__ 个项目", - "showing_1_result": "显示 1 个结果", - "showing_1_result_of_total": "显示 1 个结果(共计 __total__ )", + "show_x_more_projects": "再显示 __count__ 个项目", "showing_x_out_of_n_projects": "显示 __x__ 个项目(共 __n__ 个)", - "showing_x_results": "显示 __x__ 结果", - "showing_x_results_of_total": "显示 __x__ 个结果(共计__total__ )", + "showing_x_results": "显示 __count__ 结果", + "showing_x_results_of_total": "显示 __count__ 个结果(共计__total__ )", "sign_up": "注册", "sign_up_for_free": "免费注册", "sign_up_for_free_account": "注册免费帐户并接收定期更新", diff --git a/services/web/test/frontend/infrastructure/i18n.spec.tsx b/services/web/test/frontend/infrastructure/i18n.spec.tsx index 65f697accd..30c5ca256a 100644 --- a/services/web/test/frontend/infrastructure/i18n.spec.tsx +++ b/services/web/test/frontend/infrastructure/i18n.spec.tsx @@ -144,4 +144,34 @@ describe('i18n', function () { .should('have.text', "T&e'sting") }) }) + + describe('plurals', function () { + // See https://www.i18next.com/misc/json-format#i-18-next-json-v3 + it('picks singular for count=1', function () { + const Test = () => { + const { t } = useTranslation() + return
{t('project_search_file_count', { count: 1 })}
+ } + cy.mount() + cy.findByText('in 1 file') + }) + + it('picks plural for count>1', function () { + const Test = () => { + const { t } = useTranslation() + return
{t('project_search_file_count', { count: 5 })}
+ } + cy.mount() + cy.findByText('in 5 files') + }) + + it('picks plural for count=0', function () { + const Test = () => { + const { t } = useTranslation() + return
{t('project_search_file_count', { count: 0 })}
+ } + cy.mount() + cy.findByText('in 0 files') + }) + }) })