Skip to content

Commit

Permalink
Added more languages (hql287#253)
Browse files Browse the repository at this point in the history
* Added Arabic, Slovak and Urdu (Parkistan) to languages list.

* Updated current translations

* Added Italian Translation

* Added Slovak Translation

* Added Parkistan Translation

* Load new languages to i18n

* Added new language options to dropdown components
  • Loading branch information
hql287 authored Mar 27, 2018
1 parent 0b27f2c commit fa7e527
Show file tree
Hide file tree
Showing 39 changed files with 1,177 additions and 1 deletion.
3 changes: 3 additions & 0 deletions app/components/settings/General.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@ class General extends Component {
<option value="en">{t('settings:fields:language:en', { lng: 'en' })}</option>
<option value="fr">{t('settings:fields:language:fr', { lng: 'fr' })}</option>
<option value="id">{t('settings:fields:language:id', { lng: 'id' })}</option>
<option value="it">{t('settings:fields:language:it', { lng: 'it' })}</option>
<option value="sk">{t('settings:fields:language:sk', { lng: 'sk' })}</option>
<option value="ur-PK">{t('settings:fields:language:ur-PK', { lng: 'ur-PK' })}</option>
<option value="vi">{t('settings:fields:language:vi', { lng: 'vi' })}</option>
<option value="zh-CN">{t('settings:fields:language:zh-CN', { lng: 'zh-CN' })}</option>
</select>
Expand Down
3 changes: 3 additions & 0 deletions i18n/de/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
"openPDFReader": "PDF nach Export öffnen",
"language": {
"name": "Sprache",
"ar": "Arabisch",
"cs": "Tschechisch",
"da": "Dänisch",
"de": "Deutsch",
Expand All @@ -51,9 +52,11 @@
"ptBR": "Portugiesisch, Brasilianisch",
"ptPT": "Portugiesisch",
"ru": "Russisch",
"sk": "Slowakisch",
"th": "Thailändisch",
"tl": "Tagalog, Philippinen",
"tr": "Türkisch",
"ur-PK": "Urdu (Pakistan)",
"vi": "Vietnamesisch",
"zh-CN": "Chinesisch (Vereinfacht)",
"zh-TW": "Chinesisch (Traditionell)"
Expand Down
3 changes: 3 additions & 0 deletions i18n/en/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
"openPDFReader": "Open PDF after Export",
"language": {
"name": "Language",
"ar": "Arabic",
"cs": "Czech",
"da": "Danish",
"de": "German",
Expand All @@ -51,9 +52,11 @@
"ptBR": "Portuguese, Brazilian",
"ptPT": "Portuguese",
"ru": "Russian",
"sk": "Slovak",
"th": "Thai",
"tl": "Tagalog, Philippines",
"tr": "Turkish",
"ur-PK": "Urdu (Pakistan)",
"vi": "Vietnamese",
"zh-CN": "Chinese (Simplified)",
"zh-TW": "Chinese (Traditional)"
Expand Down
6 changes: 6 additions & 0 deletions i18n/i18n.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ import de from './de';
import en from './en';
import fr from './fr';
import id from './id';
import it from './it';
import sk from './sk';
import urPK from './ur-PK';
import vi from './vi';
import zhCN from './zh-CN';

Expand All @@ -24,6 +27,9 @@ i18n.use(reactI18nextModule).init({
en,
fr,
id,
it,
sk,
"ur-PK": urPK,
vi,
"zh-CN": zhCN
},
Expand Down
2 changes: 1 addition & 1 deletion i18n/id/preview.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"invoice": "Faktur",
"itemDescription": "Deskripsi Item",
"notice": "Pemberitahuan",
"order": "Tidak",
"order": "Nomor",
"price": "Harga",
"qty": "Kuantitas",
"subtotal": "Subtotal",
Expand Down
3 changes: 3 additions & 0 deletions i18n/id/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
"openPDFReader": "Buka PDF setelah Mengekspor",
"language": {
"name": "Bahasa",
"ar": "Arab",
"cs": "Ceko",
"da": "Denmark",
"de": "Jerman",
Expand All @@ -51,9 +52,11 @@
"ptBR": "Portugis, Brazil",
"ptPT": "Portugis",
"ru": "Rusia",
"sk": "Slovakia",
"th": "Thailand",
"tl": "Tagalog, Filipina",
"tr": "Turki",
"ur-PK": "Urdu (Pakistan)",
"vi": "Vietnam",
"zh-CN": "China (Disederhanakan)",
"zh-TW": "China (Tradisional)"
Expand Down
16 changes: 16 additions & 0 deletions i18n/it/common.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"fields": {
"fullname": "Nome e Cognome",
"company": "Azienda",
"address": "Indirizzo",
"email": "Email",
"phone": "Numero di Telefono",
"website": "Sito web"
},
"save": "Salva",
"amount": "Importo",
"default": "Predefinito",
"saveAsDefault": "Salva come Predefinito?",
"yes": "Si",
"noThanks": "No, grazie"
}
9 changes: 9 additions & 0 deletions i18n/it/contacts.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"header": "Tutti i Contatti",
"fields": {
"contact": "Contatto",
"email": "Email",
"phone": "Telefono",
"actions": "Azioni"
}
}
93 changes: 93 additions & 0 deletions i18n/it/dialog.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
{
"appUpdate": {
"available": {
"title": "Nuovo aggiornamento disponibile",
"message": "Vuoi iniziare a scaricare l'aggiornamento in background?"
},
"noUpdate": {
"title": "Nessun aggiornamento disponibile",
"message": "Stai utilizzando la versione più recente dell'app"
},
"error": {
"title": "Si è verificato un errore"
},
"downloaded": {
"title": "Aggiornamento scaricato",
"message": "Si desidera chiudere e aggiornare l'app ora?",
"quitNow": "Chiudi Ora",
"later": "Più tardi"
}
},
"noAccess": {
"title": "Nessuna autorizzazione di accesso",
"message": "Si prega di scegliere un'altra directory"
},
"errorBoundary": "Si è verificato un errore",
"deleteInvoice": {
"title": "Elimina questa fattura?",
"message": "La fattura verrà rimossa definitivamente dal database"
},
"deleteContact": {
"title": "Eliminare questo contatto?",
"message": "Il contatto verrà rimosso definitivamente dal database"
},
"fileTypeErr": {
"title": "Si prega di scegliere un altro file"
},
"validation": {
"invoiceID": {
"title": "Numero fattura non valido",
"message": "Il campo numero fattura non può essere vuoto"
},
"recipient": {
"empty": {
"title": "Contatto non valido",
"message": "Il campo Contatto non può essere vuoto"
},
"requiredFields": {
"title": "Campi obbligatori",
"message": "Si prega di compilare tutti i campi obbligatori"
},
"email": {
"title": "Email non valida",
"message": "Si prega di scegliere un altro indirizzo email"
}
},
"rows": {
"emptyDescription": {
"title": "Descrizione non valida",
"message": "Il campo Descrizione non può essere vuoto"
},
"priceZero": {
"title": "Prezzo non valido",
"message": "Il prezzo deve essere maggiore di zero"
},
"qtyZero": {
"title": "Quantità non valida",
"message": "La quantità deve essere maggiore di zero"
}
},
"dueDate": {
"title": "Scadenza non valida",
"message": "Si prega di selezionare una data"
},
"currency": {
"fraction": {
"title": "Frazione non valida",
"message": "La frazione decimale deve essere uguale o maggiore di zero"
}
},
"discount": {
"title": "Sconto non valido",
"message": "Lo sconto deve essere maggiore di zero"
},
"tax": {
"title": "Imposta non valida",
"message": "L'importo dell'imposta deve essere maggiore di zero"
},
"note": {
"title": "Nota non valida",
"message": "Il campo Nota non può essere vuoto"
}
}
}
69 changes: 69 additions & 0 deletions i18n/it/form.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
{
"header": {
"new": "Creare una Nuova Fattura",
"edit": "Modifica Fattura",
"btns": {
"clear": "Ripulisci",
"update": "Aggiorna",
"saveAndPreview": "Salva e Anteprima"
}
},
"settings": {
"name": "Impostazioni del modulo",
"hint": "Imposta i campi obbligatori del modulo."
},
"fields": {
"items": {
"name": "Prodotto/Servizio",
"description": "Descrizione",
"price": "Prezzo",
"quantity": "Quantità",
"add": "Aggiungi una nuova riga"
},
"recipient": {
"name": "Destinatario",
"select": "Seleziona",
"add": "Crea Nuovo"
},
"discount": {
"name": "Sconto",
"percentage": "Percentuale",
"flat": "Tariffa Fissa"
},
"dueDate": {
"name": "Data di Scadenza",
"placeHolder": "Seleziona una data",
"paymentTerms": {
"name": "Seleziona i termini di pagamento",
"net7": {
"label": "7 gg",
"description": "Pagamento entro 7 giorni data fattura"
},
"net10": {
"label": "10 gg",
"description": "Pagamento entro 10 giorni data fattura"
},
"net30": {
"label": "30 gg FM",
"description": "Pagamento entro 30 giorni fine mese data fattura"
},
"net60": {
"label": "60 gg FM",
"description": "Pagamento entro 60 giorni fine mese data fattura"
},
"net90": {
"label": "90 gg FM",
"description": "Pagamento entro 90 giorni fine mese data fattura"
}
}
},
"tax": {
"name": "Imposta",
"id": "Partita IVA",
"method": "Metodo",
"reverse": "Inversione Contabile"
},
"note": "Note",
"currency": "Valuta"
}
}
21 changes: 21 additions & 0 deletions i18n/it/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import common from './common.json';
import contacts from './contacts.json';
import dialog from './dialog.json';
import form from './form.json';
import invoices from './invoices.json';
import messages from './messages.json';
import preview from './preview.json';
import settings from './settings.json';
import tour from './tour.json';

export default {
common,
contacts,
dialog,
form,
invoices,
messages,
preview,
settings,
tour
}
23 changes: 23 additions & 0 deletions i18n/it/invoices.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"header": {
"name": "Tutte le Fatture"
},
"fields": {
"client": "Cliente",
"invoiceID": "Numero fattura",
"createdDate": "Creato il",
"dueDate": "Data di Scadenza",
"total": "Valore Totale"
},
"status": {
"pending": "In Sospeso",
"paid": "Pagato",
"refunded": "Rimborsato",
"cancelled": "Annullato"
},
"btns": {
"view": "Visualizza",
"edit": "Modifica",
"markAsPaid": "Contrassegna come Pagato"
}
}
16 changes: 16 additions & 0 deletions i18n/it/messages.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"noContact": "Nessun contatto disponibile",
"noInvoice": "Non hai ancora creato alcuna fattura",
"invoice": {
"saved": "Fattura salvata correttamente",
"updated": "Fattura aggiornata correttamente",
"deleted": "Fattura eliminata con successo"
},
"contact": {
"saved": "Contatto salvato correttamente",
"deleted": "Contatto eliminato con successo"
},
"settings": {
"saved": "Tutte le impostazioni sono state salvate correttamente"
}
}
Loading

0 comments on commit fa7e527

Please sign in to comment.