aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen Woodward <ben@bdw.to>2021-07-17 18:46:51 -0700
committerGitHub <noreply@github.com>2021-07-17 18:46:51 -0700
commit0eea7b56a67f40c1cb8520ecb41fae19966be8ad (patch)
tree5efabbd1d917c36f0bc58fc2274fc23d275cfa80
parent4e317bcf5fabcc84dd73af11367ec604a1013199 (diff)
Use english as a fallback language (#77)
Fixes #75
-rw-r--r--src/i18n.js20
-rw-r--r--yarn.lock133
2 files changed, 21 insertions, 132 deletions
diff --git a/src/i18n.js b/src/i18n.js
index 05be3b7..749ab92 100644
--- a/src/i18n.js
+++ b/src/i18n.js
@@ -1,6 +1,6 @@
1import i18n from 'i18next'; 1import i18n from 'i18next';
2import { initReactI18next } from 'react-i18next';
3import LanguageDetector from 'i18next-browser-languagedetector'; 2import LanguageDetector from 'i18next-browser-languagedetector';
3import { initReactI18next } from 'react-i18next';
4 4
5const resources = { 5const resources = {
6 'en-US': { 6 'en-US': {
@@ -210,13 +210,15 @@ const resources = {
210 }, 210 },
211}; 211};
212 212
213i18n.use(initReactI18next).init({ 213i18n
214 resources, 214 .use(initReactI18next)
215 interpolation: { 215 .use(LanguageDetector)
216 escapeValue: false, 216 .init({
217 }, 217 fallbackLng: 'en-US',
218}); 218 resources,
219 219 interpolation: {
220i18n.use(LanguageDetector).init(); 220 escapeValue: false,
221 },
222 });
221 223
222export default i18n; 224export default i18n;
diff --git a/yarn.lock b/yarn.lock
index fd1e0c1..265ae70 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -1157,7 +1157,7 @@
1157 dependencies: 1157 dependencies:
1158 regenerator-runtime "^0.13.4" 1158 regenerator-runtime "^0.13.4"
1159 1159
1160"@babel/runtime@^7.10.2", "@babel/runtime@^7.11.2", "@babel/runtime@^7.12.0", "@babel/runtime@^7.12.5", "@babel/runtime@^7.13.10", "@babel/runtime@^7.14.5", "@babel/runtime@^7.5.1", "@babel/runtime@^7.5.5", "@babel/runtime@^7.7.2", "@babel/runtime@^7.8.4", "@babel/runtime@^7.8.7": 1160"@babel/runtime@^7.10.2", "@babel/runtime@^7.11.2", "@babel/runtime@^7.12.0", "@babel/runtime@^7.12.5", "@babel/runtime@^7.14.5", "@babel/runtime@^7.14.6", "@babel/runtime@^7.5.1", "@babel/runtime@^7.5.5", "@babel/runtime@^7.7.2", "@babel/runtime@^7.8.4":
1161 version "7.14.6" 1161 version "7.14.6"
1162 resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.14.6.tgz#535203bc0892efc7dec60bdc27b2ecf6e409062d" 1162 resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.14.6.tgz#535203bc0892efc7dec60bdc27b2ecf6e409062d"
1163 integrity sha512-/PCB2uJ7oM44tz8YhC4Z/6PeOKXp4K588f+5M3clr1M4zbqztlo0XEfJ2LEzj/FgwfgGcIdl8n7YYjTCI0BYwg== 1163 integrity sha512-/PCB2uJ7oM44tz8YhC4Z/6PeOKXp4K588f+5M3clr1M4zbqztlo0XEfJ2LEzj/FgwfgGcIdl8n7YYjTCI0BYwg==
@@ -1219,71 +1219,6 @@
1219 resolved "https://registry.yarnpkg.com/@csstools/normalize.css/-/normalize.css-10.1.0.tgz#f0950bba18819512d42f7197e56c518aa491cf18" 1219 resolved "https://registry.yarnpkg.com/@csstools/normalize.css/-/normalize.css-10.1.0.tgz#f0950bba18819512d42f7197e56c518aa491cf18"
1220 integrity sha512-ij4wRiunFfaJxjB0BdrYHIH8FxBJpOwNPhhAcunlmPdXudL1WQV1qoP9un6JsEBAgQH+7UXyyjh0g7jTxXK6tg== 1220 integrity sha512-ij4wRiunFfaJxjB0BdrYHIH8FxBJpOwNPhhAcunlmPdXudL1WQV1qoP9un6JsEBAgQH+7UXyyjh0g7jTxXK6tg==
1221 1221
1222"@emotion/cache@^11.4.0":
1223 version "11.4.0"
1224 resolved "https://registry.nlark.com/@emotion/cache/download/@emotion/cache-11.4.0.tgz?cache=0&sync_timestamp=1620348775479&other_urls=https%3A%2F%2Fregistry.nlark.com%2F%40emotion%2Fcache%2Fdownload%2F%40emotion%2Fcache-11.4.0.tgz#293fc9d9a7a38b9aad8e9337e5014366c3b09ac0"
1225 integrity sha1-KT/J2aeji5qtjpM35QFDZsOwmsA=
1226 dependencies:
1227 "@emotion/memoize" "^0.7.4"
1228 "@emotion/sheet" "^1.0.0"
1229 "@emotion/utils" "^1.0.0"
1230 "@emotion/weak-memoize" "^0.2.5"
1231 stylis "^4.0.3"
1232
1233"@emotion/hash@^0.8.0":
1234 version "0.8.0"
1235 resolved "https://registry.npm.taobao.org/@emotion/hash/download/@emotion/hash-0.8.0.tgz#bbbff68978fefdbe68ccb533bc8cbe1d1afb5413"
1236 integrity sha1-u7/2iXj+/b5ozLUzvIy+HRr7VBM=
1237
1238"@emotion/memoize@^0.7.4":
1239 version "0.7.5"
1240 resolved "https://registry.npm.taobao.org/@emotion/memoize/download/@emotion/memoize-0.7.5.tgz?cache=0&sync_timestamp=1615986337535&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40emotion%2Fmemoize%2Fdownload%2F%40emotion%2Fmemoize-0.7.5.tgz#2c40f81449a4e554e9fc6396910ed4843ec2be50"
1241 integrity sha1-LED4FEmk5VTp/GOWkQ7UhD7CvlA=
1242
1243"@emotion/react@^11.1.1":
1244 version "11.4.0"
1245 resolved "https://registry.nlark.com/@emotion/react/download/@emotion/react-11.4.0.tgz?cache=0&sync_timestamp=1620348776949&other_urls=https%3A%2F%2Fregistry.nlark.com%2F%40emotion%2Freact%2Fdownload%2F%40emotion%2Freact-11.4.0.tgz#2465ad7b073a691409b88dfd96dc17097ddad9b7"
1246 integrity sha1-JGWtewc6aRQJuI39ltwXCX3a2bc=
1247 dependencies:
1248 "@babel/runtime" "^7.13.10"
1249 "@emotion/cache" "^11.4.0"
1250 "@emotion/serialize" "^1.0.2"
1251 "@emotion/sheet" "^1.0.1"
1252 "@emotion/utils" "^1.0.0"
1253 "@emotion/weak-memoize" "^0.2.5"
1254 hoist-non-react-statics "^3.3.1"
1255
1256"@emotion/serialize@^1.0.2":
1257 version "1.0.2"
1258 resolved "https://registry.npm.taobao.org/@emotion/serialize/download/@emotion/serialize-1.0.2.tgz?cache=0&sync_timestamp=1617886963064&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40emotion%2Fserialize%2Fdownload%2F%40emotion%2Fserialize-1.0.2.tgz#77cb21a0571c9f68eb66087754a65fa97bfcd965"
1259 integrity sha1-d8shoFccn2jrZgh3VKZfqXv82WU=
1260 dependencies:
1261 "@emotion/hash" "^0.8.0"
1262 "@emotion/memoize" "^0.7.4"
1263 "@emotion/unitless" "^0.7.5"
1264 "@emotion/utils" "^1.0.0"
1265 csstype "^3.0.2"
1266
1267"@emotion/sheet@^1.0.0", "@emotion/sheet@^1.0.1":
1268 version "1.0.1"
1269 resolved "https://registry.npm.taobao.org/@emotion/sheet/download/@emotion/sheet-1.0.1.tgz#245f54abb02dfd82326e28689f34c27aa9b2a698"
1270 integrity sha1-JF9Uq7At/YIybihonzTCeqmyppg=
1271
1272"@emotion/unitless@^0.7.5":
1273 version "0.7.5"
1274 resolved "https://registry.npm.taobao.org/@emotion/unitless/download/@emotion/unitless-0.7.5.tgz#77211291c1900a700b8a78cfafda3160d76949ed"
1275 integrity sha1-dyESkcGQCnALinjPr9oxYNdpSe0=
1276
1277"@emotion/utils@^1.0.0":
1278 version "1.0.0"
1279 resolved "https://registry.npm.taobao.org/@emotion/utils/download/@emotion/utils-1.0.0.tgz#abe06a83160b10570816c913990245813a2fd6af"
1280 integrity sha1-q+BqgxYLEFcIFskTmQJFgTov1q8=
1281
1282"@emotion/weak-memoize@^0.2.5":
1283 version "0.2.5"
1284 resolved "https://registry.npm.taobao.org/@emotion/weak-memoize/download/@emotion/weak-memoize-0.2.5.tgz#8eed982e2ee6f7f4e44c253e12962980791efd46"
1285 integrity sha1-ju2YLi7m9/TkTCU+EpYpgHke/UY=
1286
1287"@eslint/eslintrc@^0.4.2": 1222"@eslint/eslintrc@^0.4.2":
1288 version "0.4.2" 1223 version "0.4.2"
1289 resolved "https://registry.yarnpkg.com/@eslint/eslintrc/-/eslintrc-0.4.2.tgz#f63d0ef06f5c0c57d76c4ab5f63d3835c51b0179" 1224 resolved "https://registry.yarnpkg.com/@eslint/eslintrc/-/eslintrc-0.4.2.tgz#f63d0ef06f5c0c57d76c4ab5f63d3835c51b0179"
@@ -4290,14 +4225,6 @@ dom-converter@^0.2.0:
4290 dependencies: 4225 dependencies:
4291 utila "~0.4" 4226 utila "~0.4"
4292 4227
4293dom-helpers@^5.0.1:
4294 version "5.2.1"
4295 resolved "https://registry.nlark.com/dom-helpers/download/dom-helpers-5.2.1.tgz#d9400536b2bf8225ad98fe052e029451ac40e902"
4296 integrity sha1-2UAFNrK/giWtmP4FLgKUUaxA6QI=
4297 dependencies:
4298 "@babel/runtime" "^7.8.7"
4299 csstype "^3.0.2"
4300
4301dom-serializer@0: 4228dom-serializer@0:
4302 version "0.2.2" 4229 version "0.2.2"
4303 resolved "https://registry.yarnpkg.com/dom-serializer/-/dom-serializer-0.2.2.tgz#1afb81f533717175d478655debc5e332d9f9bb51" 4230 resolved "https://registry.yarnpkg.com/dom-serializer/-/dom-serializer-0.2.2.tgz#1afb81f533717175d478655debc5e332d9f9bb51"
@@ -5592,13 +5519,6 @@ hmac-drbg@^1.0.1:
5592 minimalistic-assert "^1.0.0" 5519 minimalistic-assert "^1.0.0"
5593 minimalistic-crypto-utils "^1.0.1" 5520 minimalistic-crypto-utils "^1.0.1"
5594 5521
5595hoist-non-react-statics@^3.3.1:
5596 version "3.3.2"
5597 resolved "https://registry.npm.taobao.org/hoist-non-react-statics/download/hoist-non-react-statics-3.3.2.tgz#ece0acaf71d62c2969c2ec59feff42a4b1a85b45"
5598 integrity sha1-7OCsr3HWLClpwuxZ/v9CpLGoW0U=
5599 dependencies:
5600 react-is "^16.7.0"
5601
5602hoopy@^0.1.4: 5522hoopy@^0.1.4:
5603 version "0.1.4" 5523 version "0.1.4"
5604 resolved "https://registry.yarnpkg.com/hoopy/-/hoopy-0.1.4.tgz#609207d661100033a9a9402ad3dea677381c1b1d" 5524 resolved "https://registry.yarnpkg.com/hoopy/-/hoopy-0.1.4.tgz#609207d661100033a9a9402ad3dea677381c1b1d"
@@ -5779,6 +5699,13 @@ human-signals@^1.1.1:
5779 resolved "https://registry.yarnpkg.com/human-signals/-/human-signals-1.1.1.tgz#c5b1cd14f50aeae09ab6c59fe63ba3395fe4dfa3" 5699 resolved "https://registry.yarnpkg.com/human-signals/-/human-signals-1.1.1.tgz#c5b1cd14f50aeae09ab6c59fe63ba3395fe4dfa3"
5780 integrity sha512-SEQu7vl8KjNL2eoGBLF3+wAjpsNfA9XMlXAYj/3EdaNfAlxKthD1xjEQfGOUhllCGGJVNY34bRr6lPINhNjyZw== 5700 integrity sha512-SEQu7vl8KjNL2eoGBLF3+wAjpsNfA9XMlXAYj/3EdaNfAlxKthD1xjEQfGOUhllCGGJVNY34bRr6lPINhNjyZw==
5781 5701
5702i18next-browser-languagedetector@^6.1.2:
5703 version "6.1.2"
5704 resolved "https://registry.yarnpkg.com/i18next-browser-languagedetector/-/i18next-browser-languagedetector-6.1.2.tgz#68565a28b929cbc98ab6a56826ef2faf0e927ff8"
5705 integrity sha512-YDzIGHhMRvr7M+c8B3EQUKyiMBhfqox4o1qkFvt4QXuu5V2cxf74+NCr+VEkUuU0y+RwcupA238eeolW1Yn80g==
5706 dependencies:
5707 "@babel/runtime" "^7.14.6"
5708
5782i18next@^20.3.3: 5709i18next@^20.3.3:
5783 version "20.3.3" 5710 version "20.3.3"
5784 resolved "https://registry.nlark.com/i18next/download/i18next-20.3.3.tgz#e3fdae045f9f0893e74826ce224715e43c62862b" 5711 resolved "https://registry.nlark.com/i18next/download/i18next-20.3.3.tgz#e3fdae045f9f0893e74826ce224715e43c62862b"
@@ -7249,11 +7176,6 @@ media-typer@0.3.0:
7249 resolved "https://registry.yarnpkg.com/media-typer/-/media-typer-0.3.0.tgz#8710d7af0aa626f8fffa1ce00168545263255748" 7176 resolved "https://registry.yarnpkg.com/media-typer/-/media-typer-0.3.0.tgz#8710d7af0aa626f8fffa1ce00168545263255748"
7250 integrity sha1-hxDXrwqmJvj/+hzgAWhUUmMlV0g= 7177 integrity sha1-hxDXrwqmJvj/+hzgAWhUUmMlV0g=
7251 7178
7252memoize-one@^5.0.0:
7253 version "5.2.1"
7254 resolved "https://registry.nlark.com/memoize-one/download/memoize-one-5.2.1.tgz#8337aa3c4335581839ec01c3d594090cebe8f00e"
7255 integrity sha1-gzeqPEM1WBg57AHD1ZQJDOvo8A4=
7256
7257memory-fs@^0.4.1: 7179memory-fs@^0.4.1:
7258 version "0.4.1" 7180 version "0.4.1"
7259 resolved "https://registry.yarnpkg.com/memory-fs/-/memory-fs-0.4.1.tgz#3a9a20b8462523e447cfbc7e8bb80ed667bfc552" 7181 resolved "https://registry.yarnpkg.com/memory-fs/-/memory-fs-0.4.1.tgz#3a9a20b8462523e447cfbc7e8bb80ed667bfc552"
@@ -9001,7 +8923,7 @@ prompts@^2.0.1:
9001 kleur "^3.0.3" 8923 kleur "^3.0.3"
9002 sisteransi "^1.0.5" 8924 sisteransi "^1.0.5"
9003 8925
9004prop-types@^15.5.8, prop-types@^15.6.0, prop-types@^15.6.2, prop-types@^15.7.2: 8926prop-types@^15.6.0, prop-types@^15.6.2, prop-types@^15.7.2:
9005 version "15.7.2" 8927 version "15.7.2"
9006 resolved "https://registry.yarnpkg.com/prop-types/-/prop-types-15.7.2.tgz#52c41e75b8c87e72b9d9360e0206b99dcbffa6c5" 8928 resolved "https://registry.yarnpkg.com/prop-types/-/prop-types-15.7.2.tgz#52c41e75b8c87e72b9d9360e0206b99dcbffa6c5"
9007 integrity sha512-8QQikdH7//R2vurIJSutZ1smHYTcLpRWEOlHnzcWHmBYrOGUysKwSsrC89BCiFj3CbrfJ/nXFdJepOVrY1GCHQ== 8929 integrity sha512-8QQikdH7//R2vurIJSutZ1smHYTcLpRWEOlHnzcWHmBYrOGUysKwSsrC89BCiFj3CbrfJ/nXFdJepOVrY1GCHQ==
@@ -9239,14 +9161,7 @@ react-i18next@^11.11.2:
9239 "@babel/runtime" "^7.14.5" 9161 "@babel/runtime" "^7.14.5"
9240 html-parse-stringify "^3.0.1" 9162 html-parse-stringify "^3.0.1"
9241 9163
9242react-input-autosize@^3.0.0: 9164react-is@^16.12.0, react-is@^16.8.1, react-is@^16.8.4:
9243 version "3.0.0"
9244 resolved "https://registry.npm.taobao.org/react-input-autosize/download/react-input-autosize-3.0.0.tgz#6b5898c790d4478d69420b55441fcc31d5c50a85"
9245 integrity sha1-a1iYx5DUR41pQgtVRB/MMdXFCoU=
9246 dependencies:
9247 prop-types "^15.5.8"
9248
9249react-is@^16.12.0, react-is@^16.7.0, react-is@^16.8.1, react-is@^16.8.4:
9250 version "16.13.1" 9165 version "16.13.1"
9251 resolved "https://registry.yarnpkg.com/react-is/-/react-is-16.13.1.tgz#789729a4dc36de2999dc156dd6c1d9c18cea56a4" 9166 resolved "https://registry.yarnpkg.com/react-is/-/react-is-16.13.1.tgz#789729a4dc36de2999dc156dd6c1d9c18cea56a4"
9252 integrity sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ== 9167 integrity sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==
@@ -9327,29 +9242,6 @@ react-scripts@^4.0.1:
9327 optionalDependencies: 9242 optionalDependencies:
9328 fsevents "^2.1.3" 9243 fsevents "^2.1.3"
9329 9244
9330react-select@^4.3.1:
9331 version "4.3.1"
9332 resolved "https://registry.nlark.com/react-select/download/react-select-4.3.1.tgz#389fc07c9bc7cf7d3c377b7a05ea18cd7399cb81"
9333 integrity sha1-OJ/AfJvHz308N3t6BeoYzXOZy4E=
9334 dependencies:
9335 "@babel/runtime" "^7.12.0"
9336 "@emotion/cache" "^11.4.0"
9337 "@emotion/react" "^11.1.1"
9338 memoize-one "^5.0.0"
9339 prop-types "^15.6.0"
9340 react-input-autosize "^3.0.0"
9341 react-transition-group "^4.3.0"
9342
9343react-transition-group@^4.3.0:
9344 version "4.4.2"
9345 resolved "https://registry.nlark.com/react-transition-group/download/react-transition-group-4.4.2.tgz?cache=0&sync_timestamp=1622301030407&other_urls=https%3A%2F%2Fregistry.nlark.com%2Freact-transition-group%2Fdownload%2Freact-transition-group-4.4.2.tgz#8b59a56f09ced7b55cbd53c36768b922890d5470"
9346 integrity sha1-i1mlbwnO17VcvVPDZ2i5IokNVHA=
9347 dependencies:
9348 "@babel/runtime" "^7.5.5"
9349 dom-helpers "^5.0.1"
9350 loose-envify "^1.4.0"
9351 prop-types "^15.6.2"
9352
9353react@^16.13.1: 9245react@^16.13.1:
9354 version "16.14.0" 9246 version "16.14.0"
9355 resolved "https://registry.yarnpkg.com/react/-/react-16.14.0.tgz#94d776ddd0aaa37da3eda8fc5b6b18a4c9a3114d" 9247 resolved "https://registry.yarnpkg.com/react/-/react-16.14.0.tgz#94d776ddd0aaa37da3eda8fc5b6b18a4c9a3114d"
@@ -10489,11 +10381,6 @@ stylehacks@^4.0.0:
10489 postcss "^7.0.0" 10381 postcss "^7.0.0"
10490 postcss-selector-parser "^3.0.0" 10382 postcss-selector-parser "^3.0.0"
10491 10383
10492stylis@^4.0.3:
10493 version "4.0.10"
10494 resolved "https://registry.npm.taobao.org/stylis/download/stylis-4.0.10.tgz?cache=0&sync_timestamp=1617798385355&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fstylis%2Fdownload%2Fstylis-4.0.10.tgz#446512d1097197ab3f02fb3c258358c3f7a14240"
10495 integrity sha1-RGUS0Qlxl6s/Avs8JYNYw/ehQkA=
10496
10497supports-color@^5.3.0: 10384supports-color@^5.3.0:
10498 version "5.5.0" 10385 version "5.5.0"
10499 resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-5.5.0.tgz#e2e69a44ac8772f78a1ec0b35b689df6530efc8f" 10386 resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-5.5.0.tgz#e2e69a44ac8772f78a1ec0b35b689df6530efc8f"