From 9c271d58ef479e6dbc5cd3b5c1b3d013232342d3 Mon Sep 17 00:00:00 2001 From: Kim Lan Phan Hoang Date: Wed, 23 Aug 2023 17:44:46 +0200 Subject: [PATCH] fix: update categories translations (#237) --- src/constants/categories.ts | 1 + src/langs/ar/categories.json | 31 ++++++++----------------- src/langs/de/categories.json | 29 ++++++++++++------------ src/langs/en/categories.json | 38 +++++++++++++++++++------------ src/langs/fr/categories.json | 44 +++++++++++++++++++++--------------- 5 files changed, 73 insertions(+), 70 deletions(-) diff --git a/src/constants/categories.ts b/src/constants/categories.ts index 753e9f0d..73896847 100644 --- a/src/constants/categories.ts +++ b/src/constants/categories.ts @@ -1,3 +1,4 @@ +/** @deprecated you should not use these keys, but the enum/data you receive from the db */ export const CATEGORIES = { // category types LANGUAGE: 'LANGUAGE', diff --git a/src/langs/ar/categories.json b/src/langs/ar/categories.json index 9db8e371..e30eeddd 100644 --- a/src/langs/ar/categories.json +++ b/src/langs/ar/categories.json @@ -1,30 +1,17 @@ { - "DISCIPLINE": "الفرع", - "EDUCATION_LEVEL": "مستوى التعليم", - "LANGUAGE": "اللغة", - "MATH": "رياضيات", - "LITERATURE": "الأدب", - "SOCIAL_SCIENCE": "علوم اجتماعية", - "NATURAL_SCIENCE": "علم الطبيعة", - "ARTS": "الفنون", - "KINDERGARTEN": "روضة الأطفال", - "PRIMARY_SCHOOL": "المدرسة الإبتدائية", - "LOWER_SECONDARY_SCHOOL": "المدرسة الإعدادية", - "UPPER_SECONDARY_SCHOOL": "المدرسه الثانويه العليا", - "VOCATIONAL_TRAINING": "التّدريب المهني", - "HIGHER_EDUCATION": "التعليم العالي", "discipline": "الفرع", "level": "مستوى التعليم", "language": "اللغة", - "math": "رياضيات", + + "mathematics": "رياضيات", "literature": "الأدب", - "social science": "علوم اجتماعية", - "natural science": "العلوم الطبيعية", + "social-science": "علوم اجتماعية", + "natural-science": "العلوم الطبيعية", "arts": "الفنون", "kindergarten": "روضة الأطفال", - "primary school": "المدرسة الإبتدائية", - "lower secondary school": "المدرسة الإعدادية", - "upper secondary school": "المدرسه الثانويه العليا", - "vocational training": "التّدريب المهني", - "higher education": "التعليم العالي" + "primary-school": "المدرسة الإبتدائية", + "lower-secondary-school": "المدرسة الإعدادية", + "upper-secondary-school": "المدرسه الثانويه العليا", + "vocation-training": "التّدريب المهني", + "higher-education": "التعليم العالي" } diff --git a/src/langs/de/categories.json b/src/langs/de/categories.json index 316575b6..0892fd08 100644 --- a/src/langs/de/categories.json +++ b/src/langs/de/categories.json @@ -3,21 +3,20 @@ "level": "Bildungsniveau", "language": "Sprache", - "Math": "Mathematik", - "Literature": "Literatur", - "Social Science": "Sozialwissenschaft", - "Natural Science": "Naturwissenschaft", - "Arts": "Kunst", - "Language": "Sprache", + "mathematics": "Mathematik", + "literature": "Literatur", + "social-science": "Sozialwissenschaft", + "natural-science": "Naturwissenschaft", + "arts": "Kunst", - "Kindergarten": "Kindergarten", - "Primary School": "Grundschule", - "Lower Secondary School": "Mittelschule", - "Upper Secondary School": "Sekundaroberstufe", - "Vocational Training": "Berufsausbildung", - "Higher Education": "Hochschulbildung", + "kindergarten": "Kindergarten", + "primary-school": "Grundschule", + "lower-secondary-school": "Mittelschule", + "upper-secondary-school": "Sekundaroberstufe", + "vocation-training": "Berufsausbildung", + "higher-education": "Hochschulbildung", - "English": "Englisch", - "French": "Französisch", - "German": "Deutsch" + "english": "Englisch", + "french": "Französisch", + "german": "Deutsch" } diff --git a/src/langs/en/categories.json b/src/langs/en/categories.json index cb6beb3d..77624ebe 100644 --- a/src/langs/en/categories.json +++ b/src/langs/en/categories.json @@ -2,22 +2,30 @@ "discipline": "Discipline", "level": "Education Level", "language": "Language", + "resource-type": "Ressource Type", - "Math": "Math", - "Literature": "Literature", - "Social Science": "Social Science", - "Natural Science": "Natural Science", - "Arts": "Arts", - "Language": "Language", + "mathematics": "Math", + "literature": "Literature", + "social-science": "Social Science", + "natural-science": "Natural Science", + "arts": "Arts", + "informatics": "informatics", + "physical-education": "Physical Education", - "Kindergarten": "Kindergarten", - "Primary School": "Primary School", - "Lower Secondary School": "Lower Secondary School", - "Upper Secondary School": "Upper Secondary School", - "Vocational Training": "Vocational Training", - "Higher Education": "Higher Education", + "kindergarten": "Kindergarten", + "primary-school": "Primary School", + "lower-secondary-school": "Lower Secondary School", + "upper-secondaryschool": "Upper Secondary School", + "vocation-training": "Vocational Training", + "higher-education": "Higher Education", - "English": "English", - "French": "French", - "German": "German" + "english": "English", + "french": "French", + "german": "German", + "arabic": "Arabic", + "italian": "Italian", + + "app": "Application", + "template": "Template", + "collection": "Collection" } diff --git a/src/langs/fr/categories.json b/src/langs/fr/categories.json index 48018824..59864bb3 100644 --- a/src/langs/fr/categories.json +++ b/src/langs/fr/categories.json @@ -1,23 +1,31 @@ { - "discipline": "Discipline", - "level": "Niveau éducatif", - "language": "Langue", + "discipline": "Disciplines", + "level": "Niveaux éducatifs", + "language": "Langues", + "resource-type": "Types de ressource", - "Math": "Mathématiques", - "Literature": "Littérature", - "Social Science": "Sciences sociales", - "Natural Science": "Sciences naturelles", - "Arts": "Arts", - "Language": "Langues", + "mathematics": "Mathématiques", + "literature": "Littérature", + "social-science": "Sciences sociales", + "natural-science": "Sciences naturelles", + "arts": "Arts", + "informatics": "Informatique", + "physical-education": "Education Physique", - "Kindergarden": "Jardin d'enfants", - "Primary School": "École primaire", - "Lower Secondary School": "École secondaire inférieure", - "Upper Secondary School": "École secondaire supérieure", - "Vocational Training": "Enseignement professionel", - "Higher Education": "Éducation supérieure", + "kindergarten": "Jardin d'enfants", + "primary-school": "École primaire", + "lower-secondary-school": "École secondaire inférieure", + "upper-secondary-school": "École secondaire supérieure", + "vocation-training": "Enseignement professionel", + "higher-education": "Éducation supérieure", - "English": "Anglais", - "French": "Français", - "German": "Allemand" + "english": "Anglais", + "french": "Français", + "german": "Allemand", + "arabic": "Arabe", + "italian": "Italien", + + "app": "Application", + "template": "Template", + "collection": "Collection" }