mirror of
https://github.com/Tria-plc/emaui.git
synced 2026-09-07 18:55:43 +00:00
feat: add internationalization support for seafarer registry
- Integrated i18n for seafarer registry page, including translations for various UI elements and statuses. - Updated SeafarerDetailDrawer and StatusModal components to utilize translation hooks. - Enhanced user feedback messages for status updates and errors. - Added new translations for Amharic and English locales, covering seafarer statuses, drawer labels, modal content, and table headers. localization for backoffice
This commit is contained in:
@@ -786,6 +786,23 @@ export const am: Translations = {
|
||||
anyType: "ማንኛውም",
|
||||
typeCol: "ዓይነት",
|
||||
statusCol: "ሁኔታ",
|
||||
statusValues: {
|
||||
DRAFT: "ረቂቅ",
|
||||
SUBMITTED: "ቀርቧል",
|
||||
UNDER_REVIEW: "በግምገማ ላይ",
|
||||
UNDER_EVALUATION: "በምዘና ላይ",
|
||||
RESUBMIT_REQUIRED: "እንደገና ማቅረብ ያስፈልጋል",
|
||||
INSPECTION_PENDING: "ምርመራ በመጠባበቅ ላይ",
|
||||
INSPECTION_COMPLETED: "ምርመራ ተጠናቋል",
|
||||
APPROVED: "ጸድቋል",
|
||||
REJECTED: "ውድቅ ተደርጓል",
|
||||
ON_HOLD: "ለጊዜው ተይዟል",
|
||||
PAYMENT_PENDING: "ክፍያ በመጠባበቅ ላይ",
|
||||
PAID: "ተከፍሏል",
|
||||
PAYMENT_CONFIRMED: "ሰርተፍኬት በዝግጅት ላይ",
|
||||
CERTIFICATE_ISSUED: "ሰርተፍኬት ተሰጥቷል",
|
||||
COMPLETED: "ተጠናቋል",
|
||||
},
|
||||
submittedFrom: "ከቀን ጀምሮ የቀረበ",
|
||||
submittedTo: "እስከ ቀን የቀረበ",
|
||||
clearFilters: "አጽዳ",
|
||||
@@ -1071,4 +1088,160 @@ export const am: Translations = {
|
||||
noPermission: "ፈቃድ የለዎትም",
|
||||
noPublishPermission: "ንድፎችን ማተም አይችሉም",
|
||||
},
|
||||
|
||||
seafarerRegistry: {
|
||||
title: "የመርከበኞች መዝገብ",
|
||||
profileCount_one: "{{count}} መገለጫ",
|
||||
profileCount_other: "{{count}} መገለጫዎች",
|
||||
searchPlaceholder: "ስም፣ መታወቂያ ወይም የመርከበኛ ቁጥር",
|
||||
emptySearch: "ከዚህ ፍለጋ ጋር የሚዛመድ መገለጫ የለም።",
|
||||
emptyNone: "እስካሁን የተመዘገበ መርከበኛ የለም።",
|
||||
columns: {
|
||||
name: "ስም",
|
||||
number: "የመርከበኛ ቁ.",
|
||||
department: "ክፍል",
|
||||
idNumber: "የመታወቂያ ቁጥር",
|
||||
phone: "ስልክ",
|
||||
status: "ሁኔታ",
|
||||
actions: "ተግባራት",
|
||||
},
|
||||
notRegistered: "አልተመዘገበም",
|
||||
incomplete: "ያልተሟላ",
|
||||
statusAction: "ሁኔታ",
|
||||
statusActionTooltip: "አግድ / መልስ / ዝጋ",
|
||||
status: {
|
||||
ACTIVE: "ንቁ",
|
||||
INACTIVE: "ንቁ ያልሆነ",
|
||||
PENDING: "በመጠባበቅ ላይ",
|
||||
SUSPENDED: "ታግዷል",
|
||||
},
|
||||
departments: {
|
||||
DECK: "ደክ",
|
||||
ENGINE: "ኤንጂን",
|
||||
CATERING: "ኬተሪንግ",
|
||||
},
|
||||
recordStatus: {
|
||||
SUBMITTED: "ቀርቧል",
|
||||
VERIFIED: "ተረጋግጧል",
|
||||
REJECTED: "ውድቅ ተደርጓል",
|
||||
},
|
||||
drawer: {
|
||||
seafarerNumber: "የመርከበኛ ቁጥር",
|
||||
department: "ክፍል",
|
||||
status: "ሁኔታ",
|
||||
notRegistered: "አልተመዘገበም",
|
||||
statusReason: "የሁኔታ ምክንያት: {{reason}}",
|
||||
seaServiceTab: "የባህር አገልግሎት",
|
||||
medicalTab: "ህክምና",
|
||||
noSeaService: "ምንም የባህር አገልግሎት መዝገቦች የሉም።",
|
||||
noMedical: "ምንም የህክምና ሰርተፍኬቶች የሉም።",
|
||||
vessel: "መርከብ",
|
||||
rank: "ማዕረግ",
|
||||
period: "ጊዜ",
|
||||
imoPrefix: "IMO {{number}}",
|
||||
issuer: "አውጪ",
|
||||
validity: "የሚያገለግልበት ጊዜ",
|
||||
fitness: "ብቃት",
|
||||
},
|
||||
modal: {
|
||||
title: "የመርከበኛ ሁኔታ ይቀይሩ",
|
||||
body: "{{number}} — በአሁኑ ጊዜ {{status}}። ምክንያቱ ተመዝግቦ ለመርከበኛው ይታያል።",
|
||||
newStatus: "አዲስ ሁኔታ",
|
||||
suspend: "አግድ",
|
||||
close: "ዝጋ",
|
||||
reinstate: "መልስ",
|
||||
reason: "ምክንያት",
|
||||
cancel: "ሰርዝ",
|
||||
confirm: "አረጋግጥ",
|
||||
updated: "የመርከበኛ ሁኔታ ተዘምኗል",
|
||||
updateFailed: "ሁኔታውን ማዘመን አልተቻለም",
|
||||
},
|
||||
},
|
||||
|
||||
paymentConfig: {
|
||||
title: "የክፍያ ውቅረት",
|
||||
subtitle: "እያንዳንዱ ፈቃድ ስንት እንደሚያስከፍል። አመልካቾች ከጸደቀ በኋላ ይከፍላሉ፣ መጠኑም በዚያ ቅጽበት በማመልከቻው ላይ ይወሰናል።",
|
||||
changeNotice: "ለውጥ ከአሁን ጀምሮ በሚጸድቁ ማመልከቻዎች ላይ ተፈጻሚ ይሆናል። ቀደም ሲል የጸደቁ ማመልከቻዎች የተጠየቁበትን መጠን ይይዛሉ፣ ስለዚህ እዚህ የሚደረግ ማስተካከያ አመልካች ቀደም ሲል የተጠየቀውን ክፍያ በፍጹም ሊቀይር አይችልም።",
|
||||
loadError: "የፈቃድ ዓይነቶችን መጫን አልተቻለም",
|
||||
columns: {
|
||||
type: "የፈቃድ ዓይነት",
|
||||
newApplication: "አዲስ ማመልከቻ",
|
||||
renewal: "እድሳት",
|
||||
charged: "ይከፈላል?",
|
||||
},
|
||||
renewalSameTooltip: "የተለየ የእድሳት ክፍያ የለም — እድሳት በአዲስ ማመልከቻ ተመን ይከፈላል",
|
||||
renewalSameAsNew: "(እንደ አዲሱ)",
|
||||
chargedOnApproval: "ሲጸድቅ",
|
||||
chargedNotChargedTooltip: "ይህ የፈቃድ ዓይነት በኢማ ውሳኔ ያበቃል እና ወደ ክፍያ ደረጃ አይደርስም",
|
||||
chargedNotCharged: "አይከፈልም",
|
||||
edit: "አርትዕ",
|
||||
gateway: {
|
||||
title: "የክፍያ በር",
|
||||
subtitle: "በክፍያ አገልግሎቱ አካባቢ የተቀመጠ — እዚህ አይስተካከልም።",
|
||||
provider: "ቴሌብር",
|
||||
bypassTooltip: "ALLOW_PAYMENT_BYPASS በርቷል፣ ስለዚህ አመልካች ሳይከፍል ክፍያን ማጠናቀቅ ይችላል። በምርት አካባቢ ይህ ተከልክሏል።",
|
||||
bypassEnabled: "የሙከራ ማለፊያ በርቷል",
|
||||
bypassOff: "የሙከራ ማለፊያ ጠፍቷል",
|
||||
},
|
||||
modal: {
|
||||
title: "ክፍያዎች — {{type}}",
|
||||
noPaymentStage: "ይህ የፈቃድ ዓይነት በኢማ ውሳኔ ያበቃል እና ወደ ክፍያ ደረጃ አይደርስም፣ ስለዚህ እዚህ የሚቀመጥ ክፍያ ይህ እስኪቀየር ድረስ ጥቅም ላይ አይውልም።",
|
||||
chargeableLabel: "ይህ ፈቃድ ክፍያ አለው",
|
||||
chargeableDescription: "አመልካቾች ፈጽሞ ለማይከፍሉባቸው የፈቃድ ዓይነቶች ያጥፉ።",
|
||||
newFeeLabel: "የአዲስ ማመልከቻ ክፍያ",
|
||||
sameRateLabel: "እድሳትን በተመሳሳይ ተመን ያስከፍሉ",
|
||||
sameRateDescription: "የተለየ የእድሳት ክፍያ ለማዘጋጀት ያጥፉ።",
|
||||
renewalFeeLabel: "የእድሳት ክፍያ",
|
||||
currencyLabel: "ገንዘብ",
|
||||
cancel: "ሰርዝ",
|
||||
save: "ክፍያዎችን አስቀምጥ",
|
||||
missingNewFee: "የአዲስ ማመልከቻ ክፍያ ያስገቡ፣ ወይም «ክፍያ አለው»ን ያጥፉ።",
|
||||
missingRenewalFee: "የእድሳት ክፍያ ያስገቡ፣ ወይም እድሳትን በተመሳሳይ ተመን ያስከፍሉ።",
|
||||
updated: "{{type}} ክፍያዎች ተዘምነዋል።",
|
||||
saveFailed: "ክፍያዎቹን ማስቀመጥ አልተቻለም",
|
||||
},
|
||||
},
|
||||
|
||||
recordVerification: {
|
||||
title: "የመዝገብ ማረጋገጫ",
|
||||
subtitle: "ውሳኔ የሚጠባበቁ የቀረቡ የባህር አገልግሎት መዝገቦች እና የሕክምና የምስክር ወረቀቶች። የተረጋገጡ መዝገቦች ይቀዘቅዛሉ፤ ውድቅ የተደረጉት ከእርስዎ አስተያየት ጋር ለመርከበኛው ይመለሳሉ።",
|
||||
tabs: {
|
||||
medical: "ሕክምና ({{count}})",
|
||||
seaService: "የባህር አገልግሎት ({{count}})",
|
||||
},
|
||||
columns: {
|
||||
seafarer: "መርከበኛ",
|
||||
issuer: "አውጪ",
|
||||
validity: "የሚያገለግልበት ጊዜ",
|
||||
fitness: "ብቃት",
|
||||
vessel: "መርከብ",
|
||||
rank: "ማዕረግ",
|
||||
period: "ጊዜ",
|
||||
actions: "ተግባራት",
|
||||
},
|
||||
fitness: {
|
||||
FIT: "ብቁ",
|
||||
FIT_WITH_RESTRICTIONS: "ከገደብ ጋር ብቁ",
|
||||
UNFIT: "ብቁ ያልሆነ",
|
||||
},
|
||||
evidence: "ማስረጃ",
|
||||
verify: "አረጋግጥ",
|
||||
reject: "ውድቅ አድርግ",
|
||||
evidenceTitleMedical: "ማስረጃ ለ{{name}} የሕክምና የምስክር ወረቀት",
|
||||
evidenceTitleSeaService: "ማስረጃ ለ{{name}} የባህር አገልግሎት መዝገብ",
|
||||
certificateVerified: "የምስክር ወረቀቱ ተረጋግጧል",
|
||||
seaServiceVerified: "የባህር አገልግሎት መዝገብ ተረጋግጧል",
|
||||
certificateRejected: "የምስክር ወረቀቱ ውድቅ ተደርጓል",
|
||||
seaServiceRejected: "የባህር አገልግሎት መዝገብ ውድቅ ተደርጓል",
|
||||
rulingFailed: "ውሳኔውን መመዝገብ አልተቻለም",
|
||||
emptyText: "ማረጋገጫ የሚጠባበቅ ነገር የለም።",
|
||||
rejectMedicalTitle: "የሕክምና የምስክር ወረቀት ውድቅ አድርግ",
|
||||
rejectSeaServiceTitle: "የባህር አገልግሎት መዝገብ ውድቅ አድርግ",
|
||||
rejectReasonLabel: "መርከበኛው ምን ማስተካከል አለበት?",
|
||||
cancel: "ሰርዝ",
|
||||
evidenceModalTitle: "የማስረጃ አባሪዎች",
|
||||
noAttachments: "ለዚህ መዝገብ የተጫነ ማስረጃ አባሪ የለም።",
|
||||
view: "ይመልከቱ",
|
||||
noUrl: "URL የለም",
|
||||
},
|
||||
};
|
||||
|
||||
@@ -787,6 +787,23 @@ export const en = {
|
||||
anyType: 'Any',
|
||||
typeCol: 'Type',
|
||||
statusCol: 'Status',
|
||||
statusValues: {
|
||||
DRAFT: 'Draft',
|
||||
SUBMITTED: 'Submitted',
|
||||
UNDER_REVIEW: 'Under Review',
|
||||
UNDER_EVALUATION: 'Under Evaluation',
|
||||
RESUBMIT_REQUIRED: 'Resubmit Required',
|
||||
INSPECTION_PENDING: 'Inspection Pending',
|
||||
INSPECTION_COMPLETED: 'Inspection Completed',
|
||||
APPROVED: 'Approved',
|
||||
REJECTED: 'Rejected',
|
||||
ON_HOLD: 'On Hold',
|
||||
PAYMENT_PENDING: 'Payment Pending',
|
||||
PAID: 'Paid',
|
||||
PAYMENT_CONFIRMED: 'Preparing Certificate',
|
||||
CERTIFICATE_ISSUED: 'Certificate Issued',
|
||||
COMPLETED: 'Completed',
|
||||
},
|
||||
submittedFrom: 'Submitted from',
|
||||
submittedTo: 'Submitted to',
|
||||
clearFilters: 'Clear',
|
||||
@@ -1066,6 +1083,162 @@ export const en = {
|
||||
noPermission: 'You do not have permission',
|
||||
noPublishPermission: 'You cannot publish designs',
|
||||
},
|
||||
|
||||
seafarerRegistry: {
|
||||
title: 'Seafarer registry',
|
||||
profileCount_one: '{{count}} profile',
|
||||
profileCount_other: '{{count}} profiles',
|
||||
searchPlaceholder: 'Name, ID or seafarer number',
|
||||
emptySearch: 'No profiles match that search.',
|
||||
emptyNone: 'No seafarers registered yet.',
|
||||
columns: {
|
||||
name: 'Name',
|
||||
number: 'Seafarer №',
|
||||
department: 'Department',
|
||||
idNumber: 'ID number',
|
||||
phone: 'Phone',
|
||||
status: 'Status',
|
||||
actions: 'Actions',
|
||||
},
|
||||
notRegistered: 'Not registered',
|
||||
incomplete: 'Incomplete',
|
||||
statusAction: 'Status',
|
||||
statusActionTooltip: 'Suspend / reinstate / close',
|
||||
status: {
|
||||
ACTIVE: 'Active',
|
||||
INACTIVE: 'Inactive',
|
||||
PENDING: 'Pending',
|
||||
SUSPENDED: 'Suspended',
|
||||
},
|
||||
departments: {
|
||||
DECK: 'Deck',
|
||||
ENGINE: 'Engine',
|
||||
CATERING: 'Catering',
|
||||
},
|
||||
recordStatus: {
|
||||
SUBMITTED: 'Submitted',
|
||||
VERIFIED: 'Verified',
|
||||
REJECTED: 'Rejected',
|
||||
},
|
||||
drawer: {
|
||||
seafarerNumber: 'Seafarer number',
|
||||
department: 'Department',
|
||||
status: 'Status',
|
||||
notRegistered: 'NOT REGISTERED',
|
||||
statusReason: 'Status reason: {{reason}}',
|
||||
seaServiceTab: 'Sea Service',
|
||||
medicalTab: 'Medical',
|
||||
noSeaService: 'No sea-service records.',
|
||||
noMedical: 'No medical certificates.',
|
||||
vessel: 'Vessel',
|
||||
rank: 'Rank',
|
||||
period: 'Period',
|
||||
imoPrefix: 'IMO {{number}}',
|
||||
issuer: 'Issuer',
|
||||
validity: 'Validity',
|
||||
fitness: 'Fitness',
|
||||
},
|
||||
modal: {
|
||||
title: 'Change seafarer status',
|
||||
body: '{{number}} — currently {{status}}. The reason is recorded and visible to the seafarer.',
|
||||
newStatus: 'New status',
|
||||
suspend: 'Suspend',
|
||||
close: 'Close',
|
||||
reinstate: 'Reinstate',
|
||||
reason: 'Reason',
|
||||
cancel: 'Cancel',
|
||||
confirm: 'Confirm',
|
||||
updated: 'Seafarer status updated',
|
||||
updateFailed: 'Could not update the status',
|
||||
},
|
||||
},
|
||||
|
||||
paymentConfig: {
|
||||
title: 'Payment configuration',
|
||||
subtitle: 'What each licence costs. Applicants are charged after approval, and the amount is fixed onto the application at that moment.',
|
||||
changeNotice: 'A change applies to applications approved from now on. Anything already approved keeps the amount it was quoted, so an edit here can never alter what an applicant has already been asked to pay.',
|
||||
loadError: 'Could not load licence types',
|
||||
columns: {
|
||||
type: 'Licence type',
|
||||
newApplication: 'New application',
|
||||
renewal: 'Renewal',
|
||||
charged: 'Charged?',
|
||||
},
|
||||
renewalSameTooltip: 'No separate renewal fee — renewal is charged at the new-application rate',
|
||||
renewalSameAsNew: '(same as new)',
|
||||
chargedOnApproval: 'On approval',
|
||||
chargedNotChargedTooltip: 'This licence type ends with an EMA decision and never reaches a payment stage',
|
||||
chargedNotCharged: 'Not charged',
|
||||
edit: 'Edit',
|
||||
gateway: {
|
||||
title: 'Payment gateway',
|
||||
subtitle: 'Set by the payment service environment — not editable here.',
|
||||
provider: 'Telebirr',
|
||||
bypassTooltip: 'ALLOW_PAYMENT_BYPASS is on, so an applicant can settle a fee without paying. It is refused in production.',
|
||||
bypassEnabled: 'Test bypass enabled',
|
||||
bypassOff: 'Test bypass off',
|
||||
},
|
||||
modal: {
|
||||
title: 'Fees — {{type}}',
|
||||
noPaymentStage: 'This licence type concludes with an EMA decision and never reaches a payment stage, so a fee set here stays unused until that changes.',
|
||||
chargeableLabel: 'This licence carries a fee',
|
||||
chargeableDescription: 'Turn off for licence types applicants are never charged for.',
|
||||
newFeeLabel: 'New application fee',
|
||||
sameRateLabel: 'Charge renewal at the same rate',
|
||||
sameRateDescription: 'Turn off to set a separate renewal fee.',
|
||||
renewalFeeLabel: 'Renewal fee',
|
||||
currencyLabel: 'Currency',
|
||||
cancel: 'Cancel',
|
||||
save: 'Save fees',
|
||||
missingNewFee: 'Enter a new-application fee, or turn off "carries a fee".',
|
||||
missingRenewalFee: 'Enter a renewal fee, or charge renewal at the same rate.',
|
||||
updated: '{{type}} fees updated.',
|
||||
saveFailed: 'Could not save the fees',
|
||||
},
|
||||
},
|
||||
|
||||
recordVerification: {
|
||||
title: 'Record verification',
|
||||
subtitle: 'Submitted sea-service records and medical certificates awaiting a ruling. Verified records are frozen; rejections return to the seafarer with your remark.',
|
||||
tabs: {
|
||||
medical: 'Medical ({{count}})',
|
||||
seaService: 'Sea Service ({{count}})',
|
||||
},
|
||||
columns: {
|
||||
seafarer: 'Seafarer',
|
||||
issuer: 'Issuer',
|
||||
validity: 'Validity',
|
||||
fitness: 'Fitness',
|
||||
vessel: 'Vessel',
|
||||
rank: 'Rank',
|
||||
period: 'Period',
|
||||
actions: 'Actions',
|
||||
},
|
||||
fitness: {
|
||||
FIT: 'Fit',
|
||||
FIT_WITH_RESTRICTIONS: 'Fit with restrictions',
|
||||
UNFIT: 'Unfit',
|
||||
},
|
||||
evidence: 'Evidence',
|
||||
verify: 'Verify',
|
||||
reject: 'Reject',
|
||||
evidenceTitleMedical: 'Evidence for {{name}} Medical Certificate',
|
||||
evidenceTitleSeaService: 'Evidence for {{name}} Sea Service Record',
|
||||
certificateVerified: 'Certificate verified',
|
||||
seaServiceVerified: 'Sea-service record verified',
|
||||
certificateRejected: 'Certificate rejected',
|
||||
seaServiceRejected: 'Sea-service record rejected',
|
||||
rulingFailed: 'Could not record the ruling',
|
||||
emptyText: 'Nothing awaiting verification.',
|
||||
rejectMedicalTitle: 'Reject medical certificate',
|
||||
rejectSeaServiceTitle: 'Reject sea-service record',
|
||||
rejectReasonLabel: 'What must the seafarer fix?',
|
||||
cancel: 'Cancel',
|
||||
evidenceModalTitle: 'Evidence Attachments',
|
||||
noAttachments: 'No evidence attachments uploaded for this record.',
|
||||
view: 'View',
|
||||
noUrl: 'No URL',
|
||||
},
|
||||
};
|
||||
|
||||
export type Translations = typeof en;
|
||||
|
||||
Reference in New Issue
Block a user