forked from humbertogontijo/homeassistant-roborock
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinlang.config.js
41 lines (37 loc) · 1022 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
40
41
// @ts-check
/**
* @type { import("@inlang/core/config").DefineConfig }
*/
export async function defineConfig(env) {
const plugin = await env.$import(
"https://cdn.jsdelivr.net/gh/samuelstroschein/inlang-plugin-json@1/dist/index.js"
);
const {
standardLintRules
} = await env.$import(
"https://cdn.jsdelivr.net/gh/inlang/standard-lint-rules@1/dist/index.js"
);
const pluginConfig = {
pathPattern: "custom_components/roborock/translations/{language}.json",
};
return {
referenceLanguage: "en",
languages: await plugin.getLanguages({
...env,
pluginConfig
}),
readResources: (args) => plugin.readResources({
...args,
...env,
pluginConfig
}),
writeResources: (args) => plugin.writeResources({
...args,
...env,
pluginConfig
}),
lint: {
rules: [standardLintRules()],
},
};
}