Skip to content

Commit 985d731

Browse files
committed
Move translations to public/translations.
Signed-off-by: Anders Kaseorg <[email protected]>
1 parent 032f951 commit 985d731

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+13
-15
lines changed

.prettierignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
/app/**/*.js
2-
/app/translations/*.json
32
/dist
3+
/public/translations/*.json

.tx/config

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
host = https://www.transifex.com
33

44
[zulip.desktopjson]
5-
file_filter = app/translations/<lang>.json
5+
file_filter = public/translations/<lang>.json
66
minimum_perc = 0
7-
source_file = app/translations/en.json
7+
source_file = public/translations/en.json
88
source_lang = en
99
type = KEYVALUEJSON

app/common/translation-util.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import i18n from "i18n";
55
import * as ConfigUtil from "./config-util.js";
66

77
i18n.configure({
8-
directory: path.join(__dirname, "../translations/"),
8+
directory: path.join(__dirname, "../../public/translations/"),
99
updateFiles: false,
1010
});
1111

app/renderer/js/pages/preference/general-section.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ import Tagify from "@yaireo/tagify";
99
import ISO6391 from "iso-639-1";
1010
import * as z from "zod";
1111

12+
import supportedLocales from "../../../../../public/translations/supported-locales.json";
1213
import * as ConfigUtil from "../../../../common/config-util.js";
1314
import * as EnterpriseUtil from "../../../../common/enterprise-util.js";
1415
import {html} from "../../../../common/html.js";
1516
import * as t from "../../../../common/translation-util.js";
16-
import supportedLocales from "../../../../translations/supported-locales.json";
1717
import {ipcRenderer} from "../../typed-ipc-renderer.js";
1818

1919
import {generateSelectHtml, generateSettingOption} from "./base-section.js";

docs/howto/translations.md

Lines changed: 3 additions & 3 deletions

package.json

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@
4747
"**/*.node"
4848
],
4949
"files": [
50-
"app/**/*"
50+
"app/**/*",
51+
"public/**/*"
5152
],
5253
"copyright": "©2020 Kandra Labs, Inc.",
5354
"mac": {
@@ -203,26 +204,23 @@
203204
"target": "./app/common",
204205
"from": "./app",
205206
"except": [
206-
"./common",
207-
"./translations"
207+
"./common"
208208
]
209209
},
210210
{
211211
"target": "./app/main",
212212
"from": "./app",
213213
"except": [
214214
"./common",
215-
"./main",
216-
"./translations"
215+
"./main"
217216
]
218217
},
219218
{
220219
"target": "./app/renderer",
221220
"from": "./app",
222221
"except": [
223222
"./common",
224-
"./renderer",
225-
"./translations"
223+
"./renderer"
226224
]
227225
}
228226
]
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)