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 /locales/en | |
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 'locales/en')
-rw-r--r-- | locales/en/translation.json | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/locales/en/translation.json b/locales/en/translation.json new file mode 100644 index 0000000..2cd7959 --- /dev/null +++ b/locales/en/translation.json | |||
@@ -0,0 +1,20 @@ | |||
1 | { | ||
2 | "menu": { | ||
3 | "servicesMenu": "Services", | ||
4 | "view": { | ||
5 | "showLocationBar": "Show Location Bar", | ||
6 | "reload": "Reload", | ||
7 | "forceReload": "Force Reload", | ||
8 | "toggleDeveloperTools": "Toggle Developer Tools", | ||
9 | "reloadSophie": "Reload Sophie", | ||
10 | "toggleSophieDeveloperTools": "Toggle Sophie Developer Tools" | ||
11 | }, | ||
12 | "services": { | ||
13 | "nextService": "Next Service", | ||
14 | "previousService": "Previous Service" | ||
15 | }, | ||
16 | "help": { | ||
17 | "gitlab": "Gitlab" | ||
18 | } | ||
19 | } | ||
20 | } | ||