Skip to content

Commit

Permalink
chore(i18n): add more languages (#261)
Browse files Browse the repository at this point in the history
* chore(i18n): add more languages

* chore(i18n): Pylint fixes
  • Loading branch information
Yoiber071 authored Mar 27, 2023
1 parent d1118f5 commit 1ef0847
Show file tree
Hide file tree
Showing 6 changed files with 56 additions and 10 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export TRANSIFEX_RESOURCE = frontend-app-ecommerce
transifex_langs = "ar,fr,es_419,zh_CN,pt,it,de,uk,ru,hi,fr_CA"
transifex_langs = "ar,fr,es_419,zh_CN,pt,it,de,uk,ru,hi,fr_CA,it_IT,pt_PT,de_DE"

transifex_utils = ./node_modules/.bin/transifex-utils.js
i18n = ./src/i18n
Expand Down
7 changes: 7 additions & 0 deletions src/i18n/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ import deMessages from './messages/de.json';
import ruMessages from './messages/ru.json';
import hiMessages from './messages/hi.json';
import frCAMessages from './messages/fr_CA.json';
import dedeCAMessages from './messages/de_DE.json';
import ititCAMessages from './messages/it_IT.json';
import ptptCAMessages from './messages/pt_PT.json';
// no need to import en messages-- they are in the defaultMessage field

const messages = {
Expand All @@ -23,6 +26,10 @@ const messages = {
'fr-ca': frCAMessages,
ru: ruMessages,
uk: ukMessages,
'de-de': dedeCAMessages,
'it-it': ititCAMessages,
'pt-pt': ptptCAMessages,

};

export default messages;
18 changes: 9 additions & 9 deletions src/i18n/messages/ar.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"error.notfound.message": "الصفحة التي تبحث عنها غير متوفرة أو هناك خطأ في نص الرابط. الرجاء التحقق من الرابط والمحاولة مجددا.",
"ecommerce.order.history.page.heading": "المشتريات السابقة",
"ecommerce.order.history.no.orders": "Orders you place with {siteName} will appear here.",
"ecommerce.order.history.loading.orders": "تحميل الطلبات",
"error.notfound.message": "الصفحة التي تبحث عنها غير متوفرة أو هناك خطأ في العنوان. رجاءً تحقق من العنوان و حاول مجددًا.",
"ecommerce.order.history.page.heading": "سجل الطلبيات",
"ecommerce.order.history.no.orders": "ستظهر هنا طلبياتك التي تقوم بها عند {siteName}",
"ecommerce.order.history.loading.orders": "تحميل الطلبيات جارٍ...",
"ecommerce.order.history.loading.error": "خطأ: {error}",
"ecommerce.order.history.view.order.detail": "عرض تفاصيل الطلب",
"ecommerce.order.history.view.order.detail": "عرض تفاصيل الطلبية",
"ecommerce.order.history.table.column.items": "العناصر",
"ecommerce.order.history.table.column.date.placed": "تاريخ الطلب",
"ecommerce.order.history.table.column.total.cost": "التكلفة الإجمالية:",
"ecommerce.order.history.table.column.order.number": "رقم الطلب",
"ecommerce.order.history.table.column.order.details": "تفاصيل الطلب"
"ecommerce.order.history.table.column.date.placed": "تاريخ الطلبية",
"ecommerce.order.history.table.column.total.cost": "التكلفة الإجمالية",
"ecommerce.order.history.table.column.order.number": "رقم الطلبية",
"ecommerce.order.history.table.column.order.details": "تفاصيل الطلبية"
}
13 changes: 13 additions & 0 deletions src/i18n/messages/de_DE.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"error.notfound.message": "Die gesuchte Seite ist nicht verfügbar oder es liegt ein Fehler in der URL vor. Bitte überprüfen Sie die URL und versuchen Sie es erneut.",
"ecommerce.order.history.page.heading": "Bestellverlauf",
"ecommerce.order.history.no.orders": "Ihre Bestellungen bei {siteName}, werden hier angezeigt.",
"ecommerce.order.history.loading.orders": "Bestelldaten werden geladen...",
"ecommerce.order.history.loading.error": "Fehler: {error}",
"ecommerce.order.history.view.order.detail": "Bestelldetails anzeigen",
"ecommerce.order.history.table.column.items": "Auswahlmöglichkeit/en",
"ecommerce.order.history.table.column.date.placed": "Eingestellt am",
"ecommerce.order.history.table.column.total.cost": "Gesamtpreis",
"ecommerce.order.history.table.column.order.number": "Bestellnummer",
"ecommerce.order.history.table.column.order.details": "Bestelldetails"
}
13 changes: 13 additions & 0 deletions src/i18n/messages/it_IT.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"error.notfound.message": "La pagina ricercata non è disponibile oppure è presente un errore nell'URL. Controllare l'URL e riprovare. ",
"ecommerce.order.history.page.heading": "Cronologia Ordini",
"ecommerce.order.history.no.orders": "Gli ordini che effettui con {siteName} verranno visualizzati qui.",
"ecommerce.order.history.loading.orders": "Caricamento degli ordini...",
"ecommerce.order.history.loading.error": "Errore: {error}",
"ecommerce.order.history.view.order.detail": "Visualizza dettagli ordine",
"ecommerce.order.history.table.column.items": "Oggetti",
"ecommerce.order.history.table.column.date.placed": "Data di emissione",
"ecommerce.order.history.table.column.total.cost": "Costo totale ",
"ecommerce.order.history.table.column.order.number": "Numero ordine",
"ecommerce.order.history.table.column.order.details": "Dettagli ordine"
}
13 changes: 13 additions & 0 deletions src/i18n/messages/pt_PT.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"error.notfound.message": "A página não foi encontrada ou o URL está errado. Por favor, verifique o URL e tente novamente,",
"ecommerce.order.history.page.heading": "Histórico de encomendas",
"ecommerce.order.history.no.orders": "Orders you place with {siteName} will appear here.",
"ecommerce.order.history.loading.orders": "A carregar encomendas...",
"ecommerce.order.history.loading.error": "Erro: {error}",
"ecommerce.order.history.view.order.detail": "Ver Detalhes do Pedido",
"ecommerce.order.history.table.column.items": "Itens",
"ecommerce.order.history.table.column.date.placed": "Data colocada",
"ecommerce.order.history.table.column.total.cost": "Custo total",
"ecommerce.order.history.table.column.order.number": "Número do Registo de Contas",
"ecommerce.order.history.table.column.order.details": "Detalhes do pedido"
}

0 comments on commit 1ef0847

Please sign in to comment.