listmonk/inlang.config.js
2023-06-03 18:22:13 +05:30

17 lines
504 B
JavaScript

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