diff options
author | Kristóf Marussy <kristof@marussy.com> | 2022-03-30 01:36:22 +0200 |
---|---|---|
committer | Kristóf Marussy <kristof@marussy.com> | 2022-05-16 00:54:57 +0200 |
commit | 7af01713180066b6dc1061dae930840e48c60fec (patch) | |
tree | 604a52eb8f167caf3400dad7589aaa5be2d06c8d /package.json | |
parent | feat: Add custom menubar (diff) | |
download | sophie-7af01713180066b6dc1061dae930840e48c60fec.tar.gz sophie-7af01713180066b6dc1061dae930840e48c60fec.tar.zst sophie-7af01713180066b6dc1061dae930840e48c60fec.zip |
feat(main): Add localization support
Add i18next with a custom backend to the main process to load
localization from file.
Missing localizations are written to a missing localizations file in
debug mode, but silently fall back in production mode.
We will also need to add a custom backend for the renderer process that
communicates with the main process.
(i18next-fs-electron-backend is not applicable here, because we need
localizations both in the main and renderer processes.)
Signed-off-by: Kristóf Marussy <kristof@marussy.com>
Diffstat (limited to 'package.json')
-rw-r--r-- | package.json | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/package.json b/package.json index fcba86e..7f0d9f9 100644 --- a/package.json +++ b/package.json | |||
@@ -94,8 +94,5 @@ | |||
94 | "typescript": "^4.5.5", | 94 | "typescript": "^4.5.5", |
95 | "vite": "^2.8.4" | 95 | "vite": "^2.8.4" |
96 | }, | 96 | }, |
97 | "packageManager": "yarn@3.1.1", | 97 | "packageManager": "yarn@3.1.1" |
98 | "dependencies": { | ||
99 | "preload": "^0.1.0" | ||
100 | } | ||
101 | } | 98 | } |