aboutsummaryrefslogtreecommitdiffstats
path: root/src/i18n.js
diff options
context:
space:
mode:
authorBen Woodward <ben@bdw.to>2021-07-30 08:10:53 -0700
committerGitHub <noreply@github.com>2021-07-30 08:10:53 -0700
commit152584720e36b05111d90a584bc13f7dd8259f84 (patch)
tree29db0c7137a44a6bca06c4e661db92800a0d7cd4 /src/i18n.js
parent29cf936735c74a8981f8508c91f981f3c0a697ba (diff)
Language dropdown formatting (#149)
* Sort and format language dropdown - Format languages in `latinName - nativeName` to account for RTL languages - Lexicographic order * Use generic English translation The current English translation covers both US and GB, so prefer a generic implementation until it doesn't make sense. * Update src/App.js Co-authored-by: Andanan <dev.andanan@e.mail.de> * Update src/App.js Co-authored-by: Ahmed Tarek <ahmed.tokyo1@gmail.com> Co-authored-by: Andanan <dev.andanan@e.mail.de> Co-authored-by: Ahmed Tarek <ahmed.tokyo1@gmail.com>
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 f6e8c52..7b3cc08 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-US': { 6 en: {
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-US', 563 fallbackLng: 'en',
564 resources, 564 resources,
565 interpolation: { 565 interpolation: {
566 escapeValue: false, 566 escapeValue: false,