Skip to content

Commit

Permalink
Merge pull request #487 from translate-tools/486-default-html-contain…
Browse files Browse the repository at this point in the history
…s-i18n-keys-instead-of-any-language

Default HTML contains i18n keys instead of any language
  • Loading branch information
vitonsky committed Jun 25, 2024
2 parents 35514bc + 7e63d13 commit a015ef7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions site/src/components/i18n.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import LanguageDetector from 'i18next-browser-languagedetector';
import ChainedBackend from 'i18next-chained-backend';
import resourcesToBackend from 'i18next-resources-to-backend';

import defaultLanguageNsLanding from './Landing/locales/en.json';

// eslint-disable-next-line import/no-named-as-default-member
i18n.use(ChainedBackend)
.use(LanguageDetector)
Expand All @@ -20,4 +22,6 @@ i18n.use(ChainedBackend)
},
});

i18n.addResourceBundle('en', 'landing', defaultLanguageNsLanding);

export default i18n;

0 comments on commit a015ef7

Please sign in to comment.