aboutsummaryrefslogtreecommitdiffstats
path: root/yarn.lock
diff options
context:
space:
mode:
authorLibravatar Kristóf Marussy <kristof@marussy.com>2022-04-03 18:56:00 +0200
committerLibravatar Kristóf Marussy <kristof@marussy.com>2022-05-16 00:54:59 +0200
commit7a926c4b223c8be46a1defab4a86104d617eaaf9 (patch)
tree5e50a787397ff72268c22c6dffc67432dc76e184 /yarn.lock
parentfix(main): Inconsistent RendererBridge snapshot (diff)
downloadsophie-7a926c4b223c8be46a1defab4a86104d617eaaf9.tar.gz
sophie-7a926c4b223c8be46a1defab4a86104d617eaaf9.tar.zst
sophie-7a926c4b223c8be46a1defab4a86104d617eaaf9.zip
refactor: Use i18next for language resolution
Due to https://github.com/i18next/i18next/issues/1564 we still have to implement our own language resolution, but we can rely on resolvedLanguage to determine which language to pass through to the renderer. We will use the language detected by chromium as the system locale, so there is no need to use os-locale for detection any more. We use i18next in the main process do resolve the language, then set the resolve (not requested!) language in the renderer process to avoid doing resolution twice. This avoids the need in the renderer process to know the list of supported languages. We set the language and the writing direction in HTML in the renderer. Signed-off-by: Kristóf Marussy <kristof@marussy.com>
Diffstat (limited to 'yarn.lock')
-rw-r--r--yarn.lock26
1 files changed, 0 insertions, 26 deletions
diff --git a/yarn.lock b/yarn.lock
index 768f3c0..5a844c8 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -1297,7 +1297,6 @@ __metadata:
1297 mobx-state-tree: ^5.1.3 1297 mobx-state-tree: ^5.1.3
1298 ms: ^2.1.3 1298 ms: ^2.1.3
1299 nanoid: ^3.3.2 1299 nanoid: ^3.3.2
1300 os-locale: ^6.0.2
1301 os-name: ^5.0.1 1300 os-name: ^5.0.1
1302 slug: ^5.3.0 1301 slug: ^5.3.0
1303 source-map-support: ^0.5.21 1302 source-map-support: ^0.5.21
@@ -5220,13 +5219,6 @@ __metadata:
5220 languageName: node 5219 languageName: node
5221 linkType: hard 5220 linkType: hard
5222 5221
5223"invert-kv@npm:^3.0.0":
5224 version: 3.0.1
5225 resolution: "invert-kv@npm:3.0.1"
5226 checksum: 782c44c97f8b693006f5ba0995301754bf68d2160ec98fc34d96b266e2c28cc0c91d86c341ca058fe993bc3dd91f104f776a40f04b6c75254a9a1a0d716ac814
5227 languageName: node
5228 linkType: hard
5229
5230"ip@npm:^1.1.5": 5222"ip@npm:^1.1.5":
5231 version: 1.1.5 5223 version: 1.1.5
5232 resolution: "ip@npm:1.1.5" 5224 resolution: "ip@npm:1.1.5"
@@ -6429,15 +6421,6 @@ __metadata:
6429 languageName: node 6421 languageName: node
6430 linkType: hard 6422 linkType: hard
6431 6423
6432"lcid@npm:^3.1.1":
6433 version: 3.1.1
6434 resolution: "lcid@npm:3.1.1"
6435 dependencies:
6436 invert-kv: ^3.0.0
6437 checksum: 7ebab7a2696a3cc6c6c9f25d957ef81dd2a8a2f48b7e2a9185e4bbcfc36d70cb633acf5fa5c9508f3d30badf23a303b1b6afe0bba8f0bb7d353d0f5d59c9ec1b
6438 languageName: node
6439 linkType: hard
6440
6441"leven@npm:^3.1.0": 6424"leven@npm:^3.1.0":
6442 version: 3.1.0 6425 version: 3.1.0
6443 resolution: "leven@npm:3.1.0" 6426 resolution: "leven@npm:3.1.0"
@@ -7164,15 +7147,6 @@ __metadata:
7164 languageName: node 7147 languageName: node
7165 linkType: hard 7148 linkType: hard
7166 7149
7167"os-locale@npm:^6.0.2":
7168 version: 6.0.2
7169 resolution: "os-locale@npm:6.0.2"
7170 dependencies:
7171 lcid: ^3.1.1
7172 checksum: 812d73334c8773b971bf7fd257b84d2ce7b85d5d2184370f2875fe0e51451f530d6f7c272de1faa0b9ff02d0d10dafd665b6425ed85489271705ab5738691a43
7173 languageName: node
7174 linkType: hard
7175
7176"os-name@npm:^5.0.1": 7150"os-name@npm:^5.0.1":
7177 version: 5.0.1 7151 version: 5.0.1
7178 resolution: "os-name@npm:5.0.1" 7152 resolution: "os-name@npm:5.0.1"