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 d9f683f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion i18n/i18next.min.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions i18n/i18nextBrowserLanguageDetector.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions 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 @@ -322,8 +323,7 @@ <h2>

reactInput(window.location.hash.substr(1));

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

0 comments on commit d9f683f

Please sign in to comment.