Skip to content

Commit

Permalink
Revert old language naming
Browse files Browse the repository at this point in the history
  • Loading branch information
Nitrrine committed Aug 30, 2024
1 parent 59d1ee3 commit 571d01f
Show file tree
Hide file tree
Showing 12 changed files with 3 additions and 102 deletions.
4 changes: 2 additions & 2 deletions crowdin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
files:
[
{
"source": "/html/i18n/en_US.json",
"translation": "/html/i18n/%locale_with_underscore%.json",
"source": "/html/i18n/en.json",
"translation": "/html/i18n/%two_letters_code%.json",
},
]
2 changes: 1 addition & 1 deletion html/alert.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ let blockedSite = {
path: "",
url: "",
};
let preferedLanguage = navigator.language.replace("-", "_");
let preferedLanguage = navigator.language.split("-")[0];

fetch(`./i18n/${preferedLanguage}.json`)
.then((response) => response.json())
Expand Down
11 changes: 0 additions & 11 deletions html/i18n/de_DE.json

This file was deleted.

File renamed without changes.
11 changes: 0 additions & 11 deletions html/i18n/es_ES.json

This file was deleted.

11 changes: 0 additions & 11 deletions html/i18n/fr_FR.json

This file was deleted.

11 changes: 0 additions & 11 deletions html/i18n/kk_KZ.json

This file was deleted.

11 changes: 0 additions & 11 deletions html/i18n/pt_BR.json

This file was deleted.

11 changes: 0 additions & 11 deletions html/i18n/pt_PT.json

This file was deleted.

11 changes: 0 additions & 11 deletions html/i18n/ru_RU.json

This file was deleted.

11 changes: 0 additions & 11 deletions html/i18n/vi_VN.json

This file was deleted.

11 changes: 0 additions & 11 deletions html/i18n/zh_CN.json

This file was deleted.

0 comments on commit 571d01f

Please sign in to comment.