Skip to content

Commit

Permalink
Update i18next to 23.12.3 and add language detector 8.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
link2xt committed Aug 13, 2024
1 parent e78fbc3 commit e7ed7c4
Show file tree
Hide file tree
Showing 3 changed files with 68 additions and 2 deletions.
2 changes: 1 addition & 1 deletion i18n/i18next.min.js

Large diffs are not rendered by default.

66 changes: 66 additions & 0 deletions i18n/i18nextBrowserLanguageDetector.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

<script src="./qr.min.js"></script>
<script src="./i18n/i18next.min.js"></script>
<script src="./i18n/i18nextBrowserLanguageDetector.min.js"></script>
<script src="./i18n/en.js"></script>
<script src="./i18n/fr.js"></script>
<script src="./i18n/ru.js"></script>
Expand Down Expand Up @@ -323,7 +324,6 @@ <h2>
reactInput(window.location.hash.substr(1));

i18next.init({
lng: (new URLSearchParams(window.location.search)).get('lang'),
fallbackLng: 'en',
resources: Object.entries(window.i18n).reduce(function (coll, [key, translation]) {
return Object.assign(coll, {
Expand Down

0 comments on commit e7ed7c4

Please sign in to comment.