2023-03-19 08:33:30 +00:00
|
|
|
export async function defineConfig(env) {
|
2023-06-03 12:52:13 +00:00
|
|
|
const { default: pluginJson } = await env.$import(
|
|
|
|
'https://cdn.jsdelivr.net/gh/samuelstroschein/inlang-plugin-json@2.3.1/dist/index.js'
|
|
|
|
);
|
2023-03-19 08:33:30 +00:00
|
|
|
|
2023-06-03 12:52:13 +00:00
|
|
|
const { default: standardLintRules } = await env.$import(
|
|
|
|
'https://cdn.jsdelivr.net/gh/inlang/standard-lint-rules@2/dist/index.js'
|
|
|
|
);
|
2023-03-19 08:33:30 +00:00
|
|
|
|
2023-06-03 12:52:13 +00:00
|
|
|
return {
|
|
|
|
referenceLanguage: 'en',
|
|
|
|
plugins: [pluginJson({
|
|
|
|
pathPattern: './i18n/{language}.json',
|
|
|
|
variableReferencePattern: ["{", "}"]
|
|
|
|
}), standardLintRules()]
|
|
|
|
};
|
2023-03-19 08:33:30 +00:00
|
|
|
}
|