Skip to content

Commit

Permalink
Enable Czech and Ukrainian translations
Browse files Browse the repository at this point in the history
  • Loading branch information
schlagmichdoch committed Aug 17, 2024
1 parent a458c00 commit 08af467
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
10 changes: 10 additions & 0 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,11 @@ <h2 class="dialog-title" data-i18n-key="dialogs.language-selector-title" data-i1
<span>&nbsp;&nbsp;-&nbsp;&nbsp;</span>
<span>(Catalan)</span>
</button>
<button class="btn fw wrap" value="cs">
<span>Čeština</span>
<span>&nbsp;&nbsp;-&nbsp;&nbsp;</span>
<span>(Czech)</span>
</button>
<button class="btn fw wrap" value="da">
<span>Dansk</span>
<span>&nbsp;&nbsp;-&nbsp;&nbsp;</span>
Expand Down Expand Up @@ -285,6 +290,11 @@ <h2 class="dialog-title" data-i18n-key="dialogs.language-selector-title" data-i1
<span>&nbsp;&nbsp;-&nbsp;&nbsp;</span>
<span>(Turkish)</span>
</button>
<button class="btn fw wrap" value="uk">
<span>Українська</span>
<span>&nbsp;&nbsp;-&nbsp;&nbsp;</span>
<span>(Ukrainian)</span>
</button>
<button class="btn fw wrap" value="zh-CN">
<span>中文</span>
<span>&nbsp;&nbsp;-&nbsp;&nbsp;</span>
Expand Down
2 changes: 1 addition & 1 deletion public/scripts/localization.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ class Localization {
Localization.$htmlRoot = document.querySelector('html');

Localization.defaultLocale = "en";
Localization.supportedLocales = ["ar", "be", "ca", "da", "de", "en", "es", "fr", "he", "hu", "id", "it", "ja", "kn", "nb", "nl", "pl", "pt-BR", "ro", "ru", "tr", "zh-CN", "zh-TW"];
Localization.supportedLocales = ["ar", "be", "ca", "cs", "da", "de", "en", "es", "fr", "he", "hu", "id", "it", "ja", "kn", "nb", "nl", "pl", "pt-BR", "ro", "ru", "tr", "uk", "zh-CN", "zh-TW"];
Localization.supportedLocalesRtl = ["ar", "he"];

Localization.translations = {};
Expand Down
2 changes: 2 additions & 0 deletions public/service-worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ const relativePathsToCache = [
'lang/ar.json',
'lang/be.json',
'lang/ca.json',
'lang/cs.json',
'lang/da.json',
'lang/de.json',
'lang/en.json',
Expand All @@ -47,6 +48,7 @@ const relativePathsToCache = [
'lang/ro.json',
'lang/ru.json',
'lang/tr.json',
'lang/uk.json',
'lang/zh-CN.json',
'lang/zh-TW.json'
];
Expand Down

0 comments on commit 08af467

Please sign in to comment.