forked from osmosis-labs/osmosis-frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
inlang.config.js
39 lines (37 loc) · 900 Bytes
/
inlang.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/**
* The inlang config is the entry point for every inlang app.
*
* More information about the config is available here
* https://inlang.com/documentation/config
*/
export async function defineConfig(env) {
// importing inlang-plugin-json from https://github.com/samuelstroschein/inlang-plugin-json
const plugin = await env.$import(
"https://cdn.jsdelivr.net/gh/samuelstroschein/inlang-plugin-json@1/dist/index.js"
);
const pluginConfig = {
pathPattern: "./packages/web/localizations/{language}.json",
};
return {
referenceLanguage: "en",
languages: [
"en",
"es",
"fr",
"ko",
"pl",
"ro",
"tr",
"zh-cn",
"zh-hk",
"zh-tw",
"fa",
],
readResources: (args) => {
return plugin.readResources({ ...args, ...env, pluginConfig });
},
writeResources: (args) => {
return plugin.writeResources({ ...args, ...env, pluginConfig });
},
};
}