Skip to content

Commit

Permalink
Actually use language detector
Browse files Browse the repository at this point in the history
  • Loading branch information
link2xt committed Aug 13, 2024
1 parent 74dc434 commit cc5fd20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ <h2>

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

i18next.init({
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 cc5fd20

Please sign in to comment.