cal/inlang.config.js

26 lines
800 B
JavaScript
Raw Permalink Normal View History

// see https://inlang.com/
export async function defineConfig(env) {
2023-08-14 21:42:10 -03:00
const { default: i18nextPlugin } = await env.$import(
"https://cdn.jsdelivr.net/npm/@inlang/plugin-i18next@2/dist/index.js"
);
const { default: standardLintRules } = await env.$import(
2023-08-14 21:42:10 -03:00
"https://cdn.jsdelivr.net/npm/@inlang/plugin-standard-lint-rules@3/dist/index.js"
);
2023-08-14 21:42:10 -03:00
return {
referenceLanguage: "en",
plugins: [
i18nextPlugin({
pathPattern: "./apps/web/public/static/locales/{language}/common.json",
}),
standardLintRules({
// deactivating identical pattern because of nested
// resources like "de-DE" and "de-AT" where "de-AT"
2023-08-14 21:42:10 -03:00
// contrains overwrites but the majority are identical patterns.
identicalPattern: "off",
}),
2023-08-14 21:42:10 -03:00
],
};
}