mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-11-10 10:18:57 +03:00
18 lines
525 B
JavaScript
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()]
|
|
};
|
|
}
|