feat: add country selection translations and update country name retrieval

This commit is contained in:
estifanos
2026-07-31 07:31:17 +00:00
parent 53b7b3f6f7
commit fca732e399
10 changed files with 77 additions and 95 deletions

View File

@@ -262,6 +262,11 @@ export const am: Translations = {
},
},
country: {
select: 'አገር ይምረጡ',
notFound: 'ምንም አገር አልተገኘም',
},
location: {
title: 'አካባቢዎች',
hierarchy: 'የአካባቢ ተዋረድ',

View File

@@ -260,6 +260,11 @@ export const en = {
},
},
country: {
select: 'Select a country',
notFound: 'No countries found',
},
location: {
title: 'Locations',
hierarchy: 'Location Hierarchy',

View File

@@ -232,7 +232,7 @@ function ApplicationWizard({ onDone }: { onDone: () => void }) {
<SimpleGrid cols={{ base: 1, sm: 2 }} spacing="md" mb="lg">
{[
['CoC Number', cocNo],
['Country', getCountryName(country)],
['Country', getCountryName(country, 'en')],
['Issuer', issuer],
['CoC Type', cocType],
['Issue Date', issueDate],

View File

@@ -266,7 +266,7 @@ export function WaiverApplicationPage() {
businessLicenseNumber, applicantAddress, reasonNonEsl, bankName, bankBranch,
letterRecipient, letterLanguage,
productName, productDescription, quantity, unitOfMeasurement,
invoiceNumber, invoiceDate, invoiceAmount, countryOfOrigin: getCountryName(countryOfOrigin), supplierName,
invoiceNumber, invoiceDate, invoiceAmount, countryOfOrigin: getCountryName(countryOfOrigin, 'en'), supplierName,
portOfLoading, portOfDischarge, fromPortName, toPortName, vesselName, carrierName,
billOfLadingNumber, estimatedArrivalDate, actualArrivalDate,
},

View File

@@ -170,6 +170,11 @@ export const am: Translations = {
},
},
country: {
select: 'አገር ይምረጡ',
notFound: 'ምንም አገር አልተገኘም',
},
location: {
select: 'ይምረጡ...',
noOptions: 'ምንም አማራጮች አልተገኙም',

View File

@@ -168,6 +168,11 @@ export const en = {
},
},
country: {
select: 'Select a country',
notFound: 'No countries found',
},
location: {
select: 'Select...',
noOptions: 'No options found',