2023-04-17 03:56:15 +02:00
|
|
|
export async function defineConfig(env) {
|
2023-09-04 07:33:56 +02:00
|
|
|
const { default: i18nextPlugin } = await env.$import(
|
|
|
|
"https://cdn.jsdelivr.net/npm/@inlang/plugin-i18next@3/dist/index.js",
|
|
|
|
)
|
2023-04-17 03:56:15 +02:00
|
|
|
|
2023-05-21 15:08:50 +08:00
|
|
|
const { default: standardLintRules } = await env.$import(
|
2023-09-04 07:33:56 +02:00
|
|
|
"https://cdn.jsdelivr.net/npm/@inlang/plugin-standard-lint-rules@3/dist/index.js",
|
|
|
|
)
|
2023-04-17 03:56:15 +02:00
|
|
|
|
2023-05-21 15:08:50 +08:00
|
|
|
return {
|
|
|
|
referenceLanguage: 'en',
|
2023-09-04 07:33:56 +02:00
|
|
|
plugins: [i18nextPlugin({
|
2023-07-11 19:27:40 +07:00
|
|
|
pathPattern: './frontend/resources/translations/{language}.json',
|
2023-05-21 15:08:50 +08:00
|
|
|
variableReferencePattern: ["@:"]
|
|
|
|
}), standardLintRules()]
|
|
|
|
};
|
|
|
|
}
|