Skip to content

Commit

Permalink
fix: add new locale keys
Browse files Browse the repository at this point in the history
  • Loading branch information
gciotola committed Dec 17, 2024
1 parent 675eabd commit a909df0
Show file tree
Hide file tree
Showing 2 changed files with 96 additions and 15 deletions.
56 changes: 48 additions & 8 deletions packages/app-elements/src/locales/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@ const resources = {
bundles: {
name: 'Bundle',
name_other: 'Bundles',
attributes: {
currency_code: 'Currency code'
}
},
coupons: {
name: 'Coupon',
name_other: 'Coupons',
attributes: {}
},
customers: {
Expand Down Expand Up @@ -66,6 +73,11 @@ const resources = {
name_other: 'Gift cards',
attributes: {}
},
markets: {
name: 'Market',
name_other: 'Markets',
attributes: {}
},
promotions: {
name: 'Promotion',
name_other: 'Promotions',
Expand Down Expand Up @@ -112,6 +124,16 @@ const resources = {
}
}
},
shipping_methods: {
name: 'Shipping method',
name_other: 'Shipping methods',
attributes: {}
},
skus: {
name: 'SKU',
name_other: 'SKUs',
attributes: {}
},
stock_transfers: {
name: 'Stock transfer',
name_other: 'Stock transfers',
Expand Down Expand Up @@ -156,10 +178,13 @@ type IsStringLiteral<T> =

const en = {
common: {
add_resource: 'Add {{resource}}',
add_up_to: 'You can add up to {{limit}} {{resource}}.',
all_items: 'All items',
amount: 'Amount',
back: 'Back',
close: 'Close',
continue: 'Continue',
edit: 'Edit',
filters: 'Filters',
limit_reached: 'Limit reached',
Expand All @@ -178,10 +203,16 @@ const en = {
not_found: 'Not found',
generic_resource_not_found:
'We could not find the resource you are looking for.',
empty_state_resource_title: 'No {{resource}} found!',
empty_state_resource_description:
'No {{resource}} found for this organization.',
empty_state_resource_filtered:
"We didn't find any {{resources}} matching the current filters selection.",
create_resource: 'Create {{resource}}',
generic_select_autocomplete_hint: 'Type to search for more options.'
generic_select_autocomplete_hint: 'Type to search for more options.',
select_resource: 'Select {{resource}}',
edit_resource: 'Edit {{resource}}'
},

resources,
apps: {
orders: {
Expand Down Expand Up @@ -219,9 +250,11 @@ const en = {
discount: 'Discount',
fulfillment: 'Fulfillment',
payment: 'Payment',
adjust_total: 'Adjust total',
use_for_shipping: 'Use for shipping',
use_for_billing: 'Use for billing'
use_for_billing: 'Use for billing',
new_total_line1:
'The new total is {{new_total}}, {{difference}} more than the original total.',
new_total_line2: 'Adjust the total to make it equal or less.'
},
form: {
language: 'Language',
Expand All @@ -230,7 +263,10 @@ const en = {
'Cannot create the order without a valid item. Please select one.',
email: 'Email',
email_placeholder: 'Search or add email',
email_hint: "The customer's email for this order."
email_hint: "The customer's email for this order.",
coupon_code: 'Coupon code',
select_adjustment_amount:
'Select a positive amount type to increase the order total.'
},
actions: {
add_item: 'Add item',
Expand All @@ -242,8 +278,9 @@ const en = {
place: 'Place order',
refund: 'Refund',
unarchive: 'Unarchive',
select_address: 'Select address',
edit_customer: 'Edit customer'
continue_editing: 'Continue editing',
finish_editing: 'Finish',
adjust_total: 'Adjust total'
}
},
shipments: {
Expand All @@ -258,7 +295,10 @@ const en = {
}
},
validation: {
select_one_item: 'Please select at least one item'
select_one_item: 'Please select at least one item',
coupon_code_invalid: 'Please enter a valid coupon code.',
coupon_code_too_short: 'Coupon code is too short (minimum is 8 characters)',
amount_invalid: 'Please enter a valid amount'
}
}

Expand Down
55 changes: 48 additions & 7 deletions packages/app-elements/src/locales/it.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,13 @@ import type en from './en'

const it: typeof en = {
common: {
add_resource: 'Aggiungi {{resource}}',
all_items: 'Tutti gli elementi',
amount: 'Importo',
not_handled: 'Non gestito',
back: 'Torna indietro',
close: 'Chiudi',
continue: 'Continua',
new: 'Nuovo',
not_authorized: 'Non autorizzato',
no_items: 'Nessun elemento',
Expand All @@ -23,8 +26,15 @@ const it: typeof en = {
apply: 'Applica',
not_found: 'Non trovato',
generic_resource_not_found: 'La risorsa che cercavi non è esiste.',
empty_state_resource_title: 'Nessun {{resource}} trovato!',
empty_state_resource_description:
'Nessun {{resource}} trovato found per questa organizzazione.',
empty_state_resource_filtered:
"Non c'è {{resources}} che corrisponde ai filtri selezionati.",
create_resource: 'Crea {{resource}}',
generic_select_autocomplete_hint: 'Digita per cercare più opzioni.'
generic_select_autocomplete_hint: 'Digita per cercare più opzioni.',
select_resource: 'Seleziona {{resource}}',
edit_resource: 'Modifica {{resource}}'
},
resources: {
adjustments: {
Expand All @@ -35,6 +45,13 @@ const it: typeof en = {
bundles: {
name: 'Bundle',
name_other: 'Bundles',
attributes: {
currency_code: 'Codice valuta'
}
},
coupons: {
name: 'Coupon',
name_other: 'Coupon',
attributes: {}
},
customers: {
Expand Down Expand Up @@ -88,6 +105,11 @@ const it: typeof en = {
name_other: 'Carte regalo',
attributes: {}
},
markets: {
name: 'Mercato',
name_other: 'Mercati',
attributes: {}
},
promotions: {
name: 'Promozione',
name_other: 'Promozioni',
Expand Down Expand Up @@ -134,6 +156,16 @@ const it: typeof en = {
}
}
},
shipping_methods: {
name: 'Metodo di spedizione',
name_other: 'Metodi di spedizione',
attributes: {}
},
skus: {
name: 'SKU',
name_other: 'SKU',
attributes: {}
},
stock_transfers: {
name: 'Trasferimento di magazzino',
name_other: 'Trasferimenti di magazzino',
Expand All @@ -156,7 +188,10 @@ const it: typeof en = {
}
},
validation: {
select_one_item: 'Seleziona almeno un elemento'
select_one_item: 'Seleziona almeno un elemento',
coupon_code_invalid: 'Inserisci un codice valido',
coupon_code_too_short: 'Il codice è troppo corto (minimo 8 caratteri)',
amount_invalid: 'Inserisci un importo valido'
},
apps: {
orders: {
Expand Down Expand Up @@ -194,9 +229,11 @@ const it: typeof en = {
discount: 'Sconto',
fulfillment: 'Evasione',
payment: 'Pagamento',
adjust_total: 'Aggiusta totale',
use_for_shipping: 'Usa per la spedizione',
use_for_billing: 'Usa per la fatturazione'
use_for_billing: 'Usa per la fatturazione',
new_total_line1:
'Il nuovo totale è {{new_total}}, {{difference}} in più rispetto al totale originale.',
new_total_line2: 'Rettifica il totale per renderlo uguale o inferiore.'
},
form: {
language: 'Lingua',
Expand All @@ -205,7 +242,10 @@ const it: typeof en = {
"Non è possibile creare l'ordine senza un prodotto valido. Selezionane uno.",
email: 'Indirizzo Email',
email_placeholder: 'Cerca o aggiungi un indirizzo email',
email_hint: "L'indirizzo email del cliente per questo ordine."
email_hint: "L'indirizzo email del cliente per questo ordine.",
coupon_code: 'Codice coupon',
select_adjustment_amount:
"Seleziona un tipo di importo positivo per aumentare il totale dell'ordine."
},
actions: {
add_item: 'Aggiungi prodotto',
Expand All @@ -217,8 +257,9 @@ const it: typeof en = {
place: 'Piazza ordine',
refund: 'Rimborsa',
unarchive: 'Ripristina',
select_address: 'Seleziona indirizzo',
edit_customer: 'Modifica cliente'
continue_editing: 'Continua modifiche',
finish_editing: 'Finalizza',
adjust_total: 'Rettifica totale'
}
},
shipments: {
Expand Down

0 comments on commit a909df0

Please sign in to comment.