From 011339bde7e2b482ff78fdb084fbe2af4482076e Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Thu, 28 Oct 2021 15:06:41 +0200 Subject: chore(i18n): handle singular/plural form --- htdocs/src/js/i18n/locales/en.js | 12 ++++++++++-- htdocs/src/js/i18n/locales/fr.js | 12 ++++++++++-- 2 files changed, 20 insertions(+), 4 deletions(-) (limited to 'htdocs/src/js/i18n') diff --git a/htdocs/src/js/i18n/locales/en.js b/htdocs/src/js/i18n/locales/en.js index d8fea40..d548757 100644 --- a/htdocs/src/js/i18n/locales/en.js +++ b/htdocs/src/js/i18n/locales/en.js @@ -11,8 +11,16 @@ const en = { project: { details: { about: 'About {{name}}', - repo: 'Repositories:', - tech: 'Technologies:', + repo: { + one: 'Repository:', + other: 'Repositories:', + zero: 'Repositories:', + }, + tech: { + one: 'Technology:', + other: 'Technologies:', + zero: 'Technologies:', + }, }, }, }, diff --git a/htdocs/src/js/i18n/locales/fr.js b/htdocs/src/js/i18n/locales/fr.js index f44d459..29bf9fd 100644 --- a/htdocs/src/js/i18n/locales/fr.js +++ b/htdocs/src/js/i18n/locales/fr.js @@ -11,8 +11,16 @@ const fr = { project: { details: { about: 'À propos de {{name}}', - repo: 'Dépôts :', - tech: 'Technologies :', + repo: { + one: 'Dépôt :', + other: 'Dépôts :', + zero: 'Dépôt :', + }, + tech: { + one: 'Technologie :', + other: 'Technologies :', + zero: 'Technologie :', + }, }, }, }, -- cgit v1.2.3