Skip to content

Commit

Permalink
add translations
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikita-Polyakov committed Apr 5, 2024
1 parent 7af963c commit d8e877a
Show file tree
Hide file tree
Showing 22 changed files with 63 additions and 25 deletions.
2 changes: 1 addition & 1 deletion src/components/shared/Widget/Customise.vue
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export default class CustomiseWidget extends Mixins(TranslationMixin) {
}
getLabel(key: string, name: string): string {
const label = key in this.labels ? this.labels[key] : this.t(`${name}.${key}`);
const label = key in this.labels ? this.labels[key] : '';
return capitalize(label);
}
Expand Down
4 changes: 3 additions & 1 deletion src/lang/cs.json
Original file line number Diff line number Diff line change
Expand Up @@ -1560,5 +1560,7 @@
},
"calculatingText": "Vypočítávání",
"customisePageText": "Přizpůsobit stránku",
"priceChartText": "Cenový graf"
"priceChartText": "Cenový graf",
"editText": "Upravit",
"resetText": "Resetovat"
}
4 changes: 3 additions & 1 deletion src/lang/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -1560,5 +1560,7 @@
},
"calculatingText": "Berechnung",
"customisePageText": "Seite anpassen",
"priceChartText": "Preisdiagramm"
"priceChartText": "Preisdiagramm",
"editText": "Bearbeiten",
"resetText": "Zurücksetzen"
}
5 changes: 1 addition & 4 deletions src/lang/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -1562,8 +1562,5 @@
"customisePageText": "Customize page",
"priceChartText": "Price chart",
"editText": "Edit",
"resetText": "Reset",
"options": {
"edit": "@:editText"
}
"resetText": "Reset"
}
4 changes: 3 additions & 1 deletion src/lang/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -1560,5 +1560,7 @@
},
"calculatingText": "Calculando",
"customisePageText": "Personalizar página",
"priceChartText": "Gráfico de precios"
"priceChartText": "Gráfico de precios",
"editText": "Editar",
"resetText": "Reiniciar"
}
4 changes: 3 additions & 1 deletion src/lang/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -1560,5 +1560,7 @@
},
"calculatingText": "Calculant",
"customisePageText": "Personnaliser la page",
"priceChartText": "Tableau des prix"
"priceChartText": "Tableau des prix",
"editText": "Modifier",
"resetText": "Réinitialiser"
}
4 changes: 3 additions & 1 deletion src/lang/hr.json
Original file line number Diff line number Diff line change
Expand Up @@ -1560,5 +1560,7 @@
},
"calculatingText": "Izračunavanje",
"customisePageText": "Prilagodite stranicu",
"priceChartText": "Grafikon cijena"
"priceChartText": "Grafikon cijena",
"editText": "Uredi",
"resetText": "Reset"
}
4 changes: 3 additions & 1 deletion src/lang/hu.json
Original file line number Diff line number Diff line change
Expand Up @@ -1560,5 +1560,7 @@
},
"calculatingText": "Számítás",
"customisePageText": "Az oldal testreszabása",
"priceChartText": "Ártáblázat"
"priceChartText": "Ártáblázat",
"editText": "Szerkesztés",
"resetText": "Visszaállítás"
}
4 changes: 3 additions & 1 deletion src/lang/hy.json
Original file line number Diff line number Diff line change
Expand Up @@ -1560,5 +1560,7 @@
},
"calculatingText": "Հաշվարկում",
"customisePageText": "Անհատականացրեք էջը",
"priceChartText": "Գնային շրջանագիծ"
"priceChartText": "Գնային շրջանագիծ",
"editText": "Խմբագրել",
"resetText": "Վերականգնել"
}
4 changes: 3 additions & 1 deletion src/lang/id.json
Original file line number Diff line number Diff line change
Expand Up @@ -1560,5 +1560,7 @@
},
"calculatingText": "Menghitung",
"customisePageText": "Sesuaikan halaman",
"priceChartText": "Grafik harga"
"priceChartText": "Grafik harga",
"editText": "Edit",
"resetText": "Reset"
}
4 changes: 3 additions & 1 deletion src/lang/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -1560,5 +1560,7 @@
},
"calculatingText": "Calcolando",
"customisePageText": "Personalizza la pagina",
"priceChartText": "Grafico dei prezzi"
"priceChartText": "Grafico dei prezzi",
"editText": "Modifica",
"resetText": "Ripristina"
}
4 changes: 3 additions & 1 deletion src/lang/nl.json
Original file line number Diff line number Diff line change
Expand Up @@ -1560,5 +1560,7 @@
},
"calculatingText": "Berekenen",
"customisePageText": "Pagina aanpassen",
"priceChartText": "Prijs grafiek"
"priceChartText": "Prijs grafiek",
"editText": "Bewerk",
"resetText": "Opnieuw instellen"
}
4 changes: 3 additions & 1 deletion src/lang/no.json
Original file line number Diff line number Diff line change
Expand Up @@ -1560,5 +1560,7 @@
},
"calculatingText": "Beregner",
"customisePageText": "Tilpass siden",
"priceChartText": "Prisdiagram"
"priceChartText": "Prisdiagram",
"editText": "Redigere",
"resetText": "Tilbakestill"
}
4 changes: 3 additions & 1 deletion src/lang/pl.json
Original file line number Diff line number Diff line change
Expand Up @@ -1560,5 +1560,7 @@
},
"calculatingText": "Obliczanie",
"customisePageText": "Dostosuj stronę",
"priceChartText": "Wykres cen"
"priceChartText": "Wykres cen",
"editText": "Edytuj",
"resetText": "Resetowanie"
}
4 changes: 3 additions & 1 deletion src/lang/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -1560,5 +1560,7 @@
},
"calculatingText": "Вычисление",
"customisePageText": "Настроить страницу",
"priceChartText": "График цены"
"priceChartText": "График цены",
"editText": "Редактировать",
"resetText": "Сбросить"
}
4 changes: 3 additions & 1 deletion src/lang/sk.json
Original file line number Diff line number Diff line change
Expand Up @@ -1560,5 +1560,7 @@
},
"calculatingText": "Výpočet",
"customisePageText": "Prispôsobiť stránku",
"priceChartText": "Cenový graf"
"priceChartText": "Cenový graf",
"editText": "Upraviť",
"resetText": "Resetovať"
}
4 changes: 3 additions & 1 deletion src/lang/sr.json
Original file line number Diff line number Diff line change
Expand Up @@ -1560,5 +1560,7 @@
},
"calculatingText": "Računanje",
"customisePageText": "Прилагодите страницу",
"priceChartText": "График цена"
"priceChartText": "График цена",
"editText": "Uredi",
"resetText": "Resetovati"
}
4 changes: 3 additions & 1 deletion src/lang/sv.json
Original file line number Diff line number Diff line change
Expand Up @@ -1560,5 +1560,7 @@
},
"calculatingText": "Beräknar",
"customisePageText": "Anpassa sidan",
"priceChartText": "Prisdiagram"
"priceChartText": "Prisdiagram",
"editText": "Redigera",
"resetText": "Återställa"
}
4 changes: 3 additions & 1 deletion src/lang/vi.json
Original file line number Diff line number Diff line change
Expand Up @@ -1560,5 +1560,7 @@
},
"calculatingText": "Đang tính toán",
"customisePageText": "Tùy chỉnh trang",
"priceChartText": "Biểu đồ giá"
"priceChartText": "Biểu đồ giá",
"editText": "Chỉnh sửa",
"resetText": "Cài lại"
}
4 changes: 3 additions & 1 deletion src/lang/yo.json
Original file line number Diff line number Diff line change
Expand Up @@ -1560,5 +1560,7 @@
},
"calculatingText": "Ọnàkọnà",
"customisePageText": "Ṣe akanṣe oju-iwe",
"priceChartText": "Owo chart"
"priceChartText": "Owo chart",
"editText": "Ṣatunkọ",
"resetText": "Tunto"
}
4 changes: 3 additions & 1 deletion src/lang/zh_CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -1560,5 +1560,7 @@
},
"calculatingText": "正在计算",
"customisePageText": "自定义页面",
"priceChartText": "价格走势图"
"priceChartText": "价格走势图",
"editText": "编辑",
"resetText": "重置"
}
5 changes: 4 additions & 1 deletion src/views/Swap.vue
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ export default class Swap extends Mixins(mixins.LoadingMixin, TranslationMixin,

options = {
edit: false,
flat: false,
// flat: false,
};

widgets: WidgetsVisibilityModel = {
Expand All @@ -176,13 +176,16 @@ export default class Swap extends Mixins(mixins.LoadingMixin, TranslationMixin,
const priceText = this.t('priceChartText');

return {
// widgets
[SwapWidgets.Form]: this.t('swapText'),
[SwapWidgets.Distribution]: this.t('swap.route'),
[SwapWidgets.Transactions]: this.tc('transactionText', 2),
[SwapWidgets.Chart]: priceText,
[SwapWidgets.PriceChartA]: `${priceText} ${this.tokenFrom?.symbol ?? ''}`,
[SwapWidgets.PriceChartB]: `${priceText} ${this.tokenTo?.symbol ?? ''}`,
[SwapWidgets.SupplyChart]: 'Supply',
// options
edit: this.t('editText'),
};
}

Expand Down

0 comments on commit d8e877a

Please sign in to comment.