feat: add i18n support and localized labels to certification and profession features commit

This commit is contained in:
mengstabketemaw
2026-06-30 15:57:25 +03:00
parent ef69448bbd
commit 9fd59f52ed
19 changed files with 593 additions and 354 deletions

View File

@@ -107,9 +107,11 @@ export const am: Translations = {
addTitle: 'አካባቢ ያክሉ',
editTitle: 'አካባቢ ያስተካክሉ',
code: 'ኮድ',
name: 'ስም',
nameEn: 'ስም (እንግሊዝኛ)',
nameAm: 'ስም (አማርኛ)',
type: 'አይነት',
level: 'ደረጃ',
parent: 'ወላጅ',
selectType: 'አይነት ይምረጡ',
cancel: 'ሰርዝ',
@@ -223,6 +225,92 @@ export const am: Translations = {
},
},
certification: {
title: 'የምስክር ወረቀቶች',
subtitle: 'የምስክር ወረቀት አይነቶችን ያስተዳድሩ (ለምሳሌ CoC, CoP)',
add: 'የምስክር ወረቀት ያክሉ',
noItems: 'ምንም የምስክር ወረቀቶች አልተገኙም',
confirmDelete: 'የምስክር ወረቀት ይሰረዝ',
deleteConfirmText: 'እርግጠኛ ነዎት {{name}}ን መሰረዝ ይፈልጋሉ?',
created: 'የምስክር ወረቀት ተፈጥሯል',
updated: 'የምስክር ወረቀት ዘምኗል',
deleted: 'የምስክር ወረቀት ተሰርዟል',
error: 'ክዋኔው አልተሳካም',
loadError: 'የምስክር ወረቀቶችን በመጫን ላይ ስህተት',
cancel: 'ሰርዝ',
create: 'ፍጠር',
update: 'አዘምን',
delete: 'ሰርዝ',
columns: {
name: 'ስም',
description: 'መግለጫ',
status: 'ሁኔታ',
},
form: {
nameEn: 'ስም (እንግሊዝኛ)',
nameEnPlaceholder: 'የምስክር ወረቀት ስም በእንግሊዝኛ',
nameAm: 'ስም (አማርኛ)',
nameAmPlaceholder: 'የምስክር ወረቀት ስም',
descEn: 'መግለጫ (እንግሊዝኛ)',
descEnPlaceholder: 'የእንግሊዝኛ መግለጫ',
descAm: 'መግለጫ (አማርኛ)',
descAmPlaceholder: 'የአማርኛ መግለጫ',
},
status: {
active: 'ንቁ',
inactive: 'እንቅስቃሴ የሌለ',
},
},
question: {
title: 'ጥያቄዎች',
pool: 'የጥያቄ ማከማቻ',
filterByCertification: 'በምስክር ወረቀት አጣራ',
noQuestions: 'ምንም ጥያቄዎች አልተገኙም',
addQuestion: 'ጥያቄ ያክሉ',
editQuestion: 'ጥያቄ ያስተካክሉ',
confirmDelete: 'መሰረዝን ያረጋግጡ',
deleteConfirmText: 'እርግጠኛ ነዎት ይህን ጥያቄ መሰረዝ ይፈልጋሉ?',
created: 'ጥያቄ ተፈጥሯል',
updated: 'ጥያቄ ዘምኗል',
deleted: 'ጥያቄ ተሰርዟል',
error: 'ክዋኔው አልተሳካም',
loadError: 'ጥያቄዎችን በመጫን ላይ ስህተት',
cancel: 'ሰርዝ',
create: 'ፍጠር',
update: 'አዘምን',
delete: 'ሰርዝ',
columns: {
title: 'ርዕስ',
certification: 'የምስክር ወረቀት',
form: 'ቅጽ',
points: 'ነጥብ',
status: 'ሁኔታ',
},
form: {
certification: 'የምስክር ወረቀት',
selectCertification: 'የምስክር ወረቀት ይምረጡ',
titleEn: 'ርዕስ (እንግሊዝኛ)',
titleEnPlaceholder: 'ጥያቄ በእንግሊዝኛ',
titleAm: 'ርዕስ (አማርኛ)',
titleAmPlaceholder: 'ጥያቄ በአማርኛ',
form: 'ቅጽ',
selectForm: 'ቅጽ ይምረጡ',
essay: 'ኢሴይ',
choice: 'ምርጫ',
points: 'ነጥብ',
pointsPlaceholder: 'ነጥብ',
timeAllowed: 'የተፈቀደ ጊዜ',
days: 'ቀናት',
hours: 'ሰአታት',
minutes: 'ደቂቃዎች',
},
status: {
active: 'ንቁ',
inactive: 'እንቅስቃሴ የሌለ',
},
},
configuration: {
title: 'ውቅረት',
departments: 'ክፍሎች',
@@ -231,8 +319,10 @@ export const am: Translations = {
professionsList: 'ሙያዎች',
addDepartment: 'ክፍል ያክሉ',
addProfession: 'ሙያ ያክሉ',
name: 'ስም',
nameEn: 'ስም (እንግሊዝኛ)',
nameAm: 'ስም (አማርኛ)',
description: 'መግለጫ',
descEn: 'መግለጫ (እንግሊዝኛ)',
descAm: 'መግለጫ (አማርኛ)',
department: 'ክፍል',

View File

@@ -105,9 +105,11 @@ export const en = {
addTitle: 'Add Location',
editTitle: 'Edit Location',
code: 'Code',
name: 'Name',
nameEn: 'Name (English)',
nameAm: 'Name (Amharic)',
type: 'Type',
level: 'Level',
parent: 'Parent',
selectType: 'Select type',
cancel: 'Cancel',
@@ -222,6 +224,92 @@ export const en = {
},
},
certification: {
title: 'Certifications',
subtitle: 'Manage certification types (e.g. CoC, CoP)',
add: 'Add Certification',
noItems: 'No certifications found',
confirmDelete: 'Delete Certification',
deleteConfirmText: 'Are you sure you want to delete {{name}}?',
created: 'Certification created',
updated: 'Certification updated',
deleted: 'Certification deleted',
error: 'Operation failed',
loadError: 'Error loading certifications',
cancel: 'Cancel',
create: 'Create',
update: 'Update',
delete: 'Delete',
columns: {
name: 'Name',
description: 'Description',
status: 'Status',
},
form: {
nameEn: 'Name (English)',
nameEnPlaceholder: 'Certificate name in English',
nameAm: 'Name (Amharic)',
nameAmPlaceholder: 'የምስክር ወረቀት ስም',
descEn: 'Description (English)',
descEnPlaceholder: 'English description',
descAm: 'Description (Amharic)',
descAmPlaceholder: 'የአማርኛ መግለጫ',
},
status: {
active: 'Active',
inactive: 'Inactive',
},
},
question: {
title: 'Questions',
pool: 'Question Pool',
filterByCertification: 'Filter by certification',
noQuestions: 'No questions found',
addQuestion: 'Add Question',
editQuestion: 'Edit Question',
confirmDelete: 'Confirm Delete',
deleteConfirmText: 'Are you sure you want to delete this question?',
created: 'Question created',
updated: 'Question updated',
deleted: 'Question deleted',
error: 'Operation failed',
loadError: 'Error loading questions',
cancel: 'Cancel',
create: 'Create',
update: 'Update',
delete: 'Delete',
columns: {
title: 'Title',
certification: 'Certification',
form: 'Form',
points: 'Points',
status: 'Status',
},
form: {
certification: 'Certification',
selectCertification: 'Select certification',
titleEn: 'Title (English)',
titleEnPlaceholder: 'Question in English',
titleAm: 'Title (Amharic)',
titleAmPlaceholder: 'ጥያቄ በአማርኛ',
form: 'Form',
selectForm: 'Select form',
essay: 'Essay',
choice: 'Choice',
points: 'Points',
pointsPlaceholder: 'Points',
timeAllowed: 'Time Allowed',
days: 'Days',
hours: 'Hours',
minutes: 'Minutes',
},
status: {
active: 'Active',
inactive: 'Inactive',
},
},
configuration: {
title: 'Configuration',
departments: 'Departments',
@@ -230,8 +318,10 @@ export const en = {
professionsList: 'Professions',
addDepartment: 'Add Department',
addProfession: 'Add Profession',
name: 'Name',
nameEn: 'Name (English)',
nameAm: 'Name (Amharic)',
description: 'Description',
descEn: 'Description (English)',
descAm: 'Description (Amharic)',
department: 'Department',