aboutsummaryrefslogtreecommitdiffstats
path: root/src/i18n.js
diff options
context:
space:
mode:
authorBen Woodward <ben@bdw.to>2021-07-30 11:04:48 -0700
committerGitHub <noreply@github.com>2021-07-30 11:04:48 -0700
commit638901b3bab46dcb5b2d0eaa91c61929cdb0376e (patch)
tree9d4620ad9d240b52767d347a219b7637c2ffe882 /src/i18n.js
parent02338896e0438da05735d9a461d1943d17114ef2 (diff)
Rename 'en' to 'en-US' (#153)
* Rename 'en' to 'en-US' Fixes #152 * English as first language option This produces the correct fallback selection when the browser language is not yet translated
Diffstat (limited to 'src/i18n.js')
-rw-r--r--src/i18n.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/i18n.js b/src/i18n.js
index 7b3cc08..f6e8c52 100644
--- a/src/i18n.js
+++ b/src/i18n.js
@@ -3,7 +3,7 @@ import LanguageDetector from 'i18next-browser-languagedetector';
3import { initReactI18next } from 'react-i18next'; 3import { initReactI18next } from 'react-i18next';
4 4
5const resources = { 5const resources = {
6 en: { 6 'en-US': {
7 translation: { 7 translation: {
8 title: 'WiFi Card', 8 title: 'WiFi Card',
9 'desc.use': 9 'desc.use':
@@ -560,7 +560,7 @@ i18n
560 .use(initReactI18next) 560 .use(initReactI18next)
561 .use(LanguageDetector) 561 .use(LanguageDetector)
562 .init({ 562 .init({
563 fallbackLng: 'en', 563 fallbackLng: 'en-US',
564 resources, 564 resources,
565 interpolation: { 565 interpolation: {
566 escapeValue: false, 566 escapeValue: false,