mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
d5ccc20e04
* feat: add inlang.config.js * inlang: update translations * inlang: update translations * inlang: update translations * inlang: update translations * inlang: update translations * inlang: update translations * inlang: update translations * inlang: update translations * inlang: update translations --------- Co-authored-by: NilsJacobsen <>
29 lines
858 B
JavaScript
29 lines
858 B
JavaScript
|
|
// @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.1.1/dist/index.js"
|
|
);
|
|
|
|
const { default: standardLintRules } = await env.$import(
|
|
"https://cdn.jsdelivr.net/gh/inlang/standard-lint-rules@1.1.1/dist/index.js"
|
|
);
|
|
|
|
const pluginConfig = {
|
|
pathPattern: "./frontend/appflowy_flutter/assets/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()],
|
|
},
|
|
};
|
|
} |