From b73c2212c12cf3f38a01146aee8740cf36c6b7d7 Mon Sep 17 00:00:00 2001 From: kim Date: Wed, 27 Nov 2024 17:22:10 +0100 Subject: [PATCH 1/4] feat: add tag category translations --- src/langs/ar/tagCategory.json | 1 + src/langs/de/tagCategory.json | 1 + src/langs/en/tagCategory.json | 8 ++++++++ src/langs/es/tagCategory.json | 1 + src/langs/fr/tagCategory.json | 1 + src/langs/index.ts | 27 ++++++++++++++------------- src/langs/it/tagCategory.json | 1 + 7 files changed, 27 insertions(+), 13 deletions(-) create mode 100644 src/langs/ar/tagCategory.json create mode 100644 src/langs/de/tagCategory.json create mode 100644 src/langs/en/tagCategory.json create mode 100644 src/langs/es/tagCategory.json create mode 100644 src/langs/fr/tagCategory.json create mode 100644 src/langs/it/tagCategory.json diff --git a/src/langs/ar/tagCategory.json b/src/langs/ar/tagCategory.json new file mode 100644 index 00000000..0967ef42 --- /dev/null +++ b/src/langs/ar/tagCategory.json @@ -0,0 +1 @@ +{} diff --git a/src/langs/de/tagCategory.json b/src/langs/de/tagCategory.json new file mode 100644 index 00000000..0967ef42 --- /dev/null +++ b/src/langs/de/tagCategory.json @@ -0,0 +1 @@ +{} diff --git a/src/langs/en/tagCategory.json b/src/langs/en/tagCategory.json new file mode 100644 index 00000000..be91a27f --- /dev/null +++ b/src/langs/en/tagCategory.json @@ -0,0 +1,8 @@ +{ + "discipline_one": "Discipline", + "discipline_other": "Disciplines", + "level_one": "Level", + "level_other": "Levels", + "resource-type_one": "Resource Type", + "resource-type_other": "Resource Types" +} diff --git a/src/langs/es/tagCategory.json b/src/langs/es/tagCategory.json new file mode 100644 index 00000000..0967ef42 --- /dev/null +++ b/src/langs/es/tagCategory.json @@ -0,0 +1 @@ +{} diff --git a/src/langs/fr/tagCategory.json b/src/langs/fr/tagCategory.json new file mode 100644 index 00000000..0967ef42 --- /dev/null +++ b/src/langs/fr/tagCategory.json @@ -0,0 +1 @@ +{} diff --git a/src/langs/index.ts b/src/langs/index.ts index 1de5c791..33c38d47 100644 --- a/src/langs/index.ts +++ b/src/langs/index.ts @@ -10,12 +10,12 @@ import chatboxDE from './de/chatbox.json' with { type: 'json' }; import chatboxIT from './it/chatbox.json' with { type: 'json' }; import chatboxAR from './ar/chatbox.json' with { type: 'json' }; import chatboxES from './es/chatbox.json' with { type: 'json' }; -import categoriesEN from './en/categories.json' with { type: 'json' }; -import categoriesFR from './fr/categories.json' with { type: 'json' }; -import categoriesDE from './de/categories.json' with { type: 'json' }; -import categoriesIT from './it/categories.json' with { type: 'json' }; -import categoriesAR from './ar/categories.json' with { type: 'json' }; -import categoriesES from './es/categories.json' with { type: 'json' }; +import tagCategoriesEN from './en/tagCategory.json' with { type: 'json' }; +import tagCategoriesFR from './fr/tagCategory.json' with { type: 'json' }; +import tagCategoriesDE from './de/tagcategory.json' with { type: 'json' }; +import tagCategoriesIT from './it/tagcategory.json' with { type: 'json' }; +import tagCategoriesAR from './ar/tagcategory.json' with { type: 'json' }; +import tagCategoriesES from './es/tagcategory.json' with { type: 'json' }; import commonEN from './en/common.json' with { type: 'json' }; import commonFR from './fr/common.json' with { type: 'json' }; import commonDE from './de/common.json' with { type: 'json' }; @@ -81,7 +81,7 @@ import accountTypesES from './es/accountTypes.json' with { type: 'json' }; export const namespaces = { auth: 'auth', association: 'association', - categories: 'categories', + tagCategories: 'tagCategories', chatbox: 'chatbox', common: 'common', enums: 'enums', @@ -94,7 +94,7 @@ export const namespaces = { const en = { [namespaces.association]: associationEN, - [namespaces.categories]: categoriesEN, + [namespaces.tagCategories]: tagCategoriesEN, [namespaces.chatbox]: chatboxEN, [namespaces.common]: commonEN, [namespaces.enums]: { @@ -112,7 +112,7 @@ const en = { const fr = { [namespaces.association]: associationFR, - [namespaces.categories]: categoriesFR, + [namespaces.tagCategories]: tagCategoriesFR, [namespaces.chatbox]: chatboxFR, [namespaces.common]: commonFR, [namespaces.enums]: { @@ -130,7 +130,7 @@ const fr = { const de = { [namespaces.association]: associationDE, - [namespaces.categories]: categoriesDE, + [namespaces.tagCategories]: tagCategoriesDE, [namespaces.chatbox]: chatboxDE, [namespaces.common]: commonDE, [namespaces.enums]: { @@ -148,7 +148,7 @@ const de = { const it = { [namespaces.association]: associationIT, - [namespaces.categories]: categoriesIT, + [namespaces.tagCategories]: tagCategoriesIT, [namespaces.chatbox]: chatboxIT, [namespaces.common]: commonIT, [namespaces.enums]: { @@ -166,7 +166,7 @@ const it = { const ar = { [namespaces.association]: associationAR, - [namespaces.categories]: categoriesAR, + [namespaces.tagCategories]: tagCategoriesAR, [namespaces.chatbox]: chatboxAR, [namespaces.common]: commonAR, [namespaces.enums]: { @@ -184,7 +184,7 @@ const ar = { const es = { [namespaces.association]: associationES, - [namespaces.categories]: categoriesES, + [namespaces.tagCategories]: tagCategoriesES, [namespaces.chatbox]: chatboxES, [namespaces.common]: commonES, [namespaces.enums]: { @@ -194,6 +194,7 @@ const es = { ...flagES, ...maxWidthES, ...accountTypesES, + ...tagCategoriesES, }, [namespaces.messages]: messagesES, [namespaces.uppy]: uppyES, diff --git a/src/langs/it/tagCategory.json b/src/langs/it/tagCategory.json new file mode 100644 index 00000000..0967ef42 --- /dev/null +++ b/src/langs/it/tagCategory.json @@ -0,0 +1 @@ +{} From 800a7e8cf1e005a032778b014ca6f1c15d9be5c8 Mon Sep 17 00:00:00 2001 From: kim Date: Wed, 27 Nov 2024 17:26:02 +0100 Subject: [PATCH 2/4] refactor: translate in fr --- src/langs/fr/tagCategory.json | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/langs/fr/tagCategory.json b/src/langs/fr/tagCategory.json index 0967ef42..f52ce697 100644 --- a/src/langs/fr/tagCategory.json +++ b/src/langs/fr/tagCategory.json @@ -1 +1,8 @@ -{} +{ + "discipline_one": "Discipline", + "discipline_other": "Disciplines", + "level_one": "Niveau", + "level_other": "Niveaux", + "resource-type_one": "Type de Ressource", + "resource-type_other": "Types de Ressource" +} From 67c73dd349415be370b5b4eadf2c5ec84c729d0e Mon Sep 17 00:00:00 2001 From: kim Date: Wed, 27 Nov 2024 17:32:40 +0100 Subject: [PATCH 3/4] refactor: fix enum --- src/langs/index.ts | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/langs/index.ts b/src/langs/index.ts index 33c38d47..5e8fa8f2 100644 --- a/src/langs/index.ts +++ b/src/langs/index.ts @@ -81,7 +81,6 @@ import accountTypesES from './es/accountTypes.json' with { type: 'json' }; export const namespaces = { auth: 'auth', association: 'association', - tagCategories: 'tagCategories', chatbox: 'chatbox', common: 'common', enums: 'enums', @@ -94,7 +93,6 @@ export const namespaces = { const en = { [namespaces.association]: associationEN, - [namespaces.tagCategories]: tagCategoriesEN, [namespaces.chatbox]: chatboxEN, [namespaces.common]: commonEN, [namespaces.enums]: { @@ -104,6 +102,7 @@ const en = { ...flagEN, ...maxWidthEN, ...accountTypesEN, + ...tagCategoriesEN, }, [namespaces.messages]: messagesEN, [namespaces.uppy]: uppyEN, @@ -112,7 +111,6 @@ const en = { const fr = { [namespaces.association]: associationFR, - [namespaces.tagCategories]: tagCategoriesFR, [namespaces.chatbox]: chatboxFR, [namespaces.common]: commonFR, [namespaces.enums]: { @@ -122,6 +120,7 @@ const fr = { ...flagFR, ...maxWidthFR, ...accountTypesFR, + ...tagCategoriesFR, }, [namespaces.messages]: messagesFR, [namespaces.uppy]: uppyFR, @@ -130,7 +129,6 @@ const fr = { const de = { [namespaces.association]: associationDE, - [namespaces.tagCategories]: tagCategoriesDE, [namespaces.chatbox]: chatboxDE, [namespaces.common]: commonDE, [namespaces.enums]: { @@ -140,6 +138,7 @@ const de = { ...flagDE, ...maxWidthDE, ...accountTypesDE, + ...tagCategoriesDE, }, [namespaces.messages]: messagesDE, [namespaces.uppy]: uppyDE, @@ -148,7 +147,6 @@ const de = { const it = { [namespaces.association]: associationIT, - [namespaces.tagCategories]: tagCategoriesIT, [namespaces.chatbox]: chatboxIT, [namespaces.common]: commonIT, [namespaces.enums]: { @@ -158,6 +156,7 @@ const it = { ...flagIT, ...maxWidthIT, ...accountTypesIT, + ...tagCategoriesIT, }, [namespaces.messages]: messagesIT, [namespaces.uppy]: uppyIT, @@ -166,7 +165,6 @@ const it = { const ar = { [namespaces.association]: associationAR, - [namespaces.tagCategories]: tagCategoriesAR, [namespaces.chatbox]: chatboxAR, [namespaces.common]: commonAR, [namespaces.enums]: { @@ -176,6 +174,7 @@ const ar = { ...flagAR, ...maxWidthAR, ...accountTypesAR, + ...tagCategoriesAR, }, [namespaces.messages]: messagesAR, [namespaces.uppy]: uppyAR, @@ -184,7 +183,6 @@ const ar = { const es = { [namespaces.association]: associationES, - [namespaces.tagCategories]: tagCategoriesES, [namespaces.chatbox]: chatboxES, [namespaces.common]: commonES, [namespaces.enums]: { From c27f452ab5396cb1eebbe052c7ac56d4e55d6a9b Mon Sep 17 00:00:00 2001 From: kim Date: Mon, 9 Dec 2024 14:56:25 +0100 Subject: [PATCH 4/4] refactor: fix file path --- src/langs/index.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/langs/index.ts b/src/langs/index.ts index 5e8fa8f2..55bfd49a 100644 --- a/src/langs/index.ts +++ b/src/langs/index.ts @@ -12,10 +12,10 @@ import chatboxAR from './ar/chatbox.json' with { type: 'json' }; import chatboxES from './es/chatbox.json' with { type: 'json' }; import tagCategoriesEN from './en/tagCategory.json' with { type: 'json' }; import tagCategoriesFR from './fr/tagCategory.json' with { type: 'json' }; -import tagCategoriesDE from './de/tagcategory.json' with { type: 'json' }; -import tagCategoriesIT from './it/tagcategory.json' with { type: 'json' }; -import tagCategoriesAR from './ar/tagcategory.json' with { type: 'json' }; -import tagCategoriesES from './es/tagcategory.json' with { type: 'json' }; +import tagCategoriesDE from './de/tagCategory.json' with { type: 'json' }; +import tagCategoriesIT from './it/tagCategory.json' with { type: 'json' }; +import tagCategoriesAR from './ar/tagCategory.json' with { type: 'json' }; +import tagCategoriesES from './es/tagCategory.json' with { type: 'json' }; import commonEN from './en/common.json' with { type: 'json' }; import commonFR from './fr/common.json' with { type: 'json' }; import commonDE from './de/common.json' with { type: 'json' };