AppFlowy/inlang.config.js
2023-09-04 13:33:56 +08:00

18 lines
525 B
JavaScript

export async function defineConfig(env) {
const { default: i18nextPlugin } = await env.$import(
"https://cdn.jsdelivr.net/npm/@inlang/plugin-i18next@3/dist/index.js",
)
const { default: standardLintRules } = await env.$import(
"https://cdn.jsdelivr.net/npm/@inlang/plugin-standard-lint-rules@3/dist/index.js",
)
return {
referenceLanguage: 'en',
plugins: [i18nextPlugin({
pathPattern: './frontend/resources/translations/{language}.json',
variableReferencePattern: ["@:"]
}), standardLintRules()]
};
}