mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00: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()]
|
|
};
|
|
}
|