AppFlowy/inlang.config.js

18 lines
537 B
JavaScript
Raw Normal View History

export async function defineConfig(env) {
2023-05-19 11:26:04 +00:00
const { default: pluginJson } = await env.$import(
'https://cdn.jsdelivr.net/gh/samuelstroschein/inlang-plugin-json@2/dist/index.js'
);
2023-05-19 11:26:04 +00:00
const { default: standardLintRules } = await env.$import(
'https://cdn.jsdelivr.net/gh/inlang/standard-lint-rules@2/dist/index.js'
);
2023-05-19 11:26:04 +00:00
return {
referenceLanguage: 'en',
plugins: [pluginJson({
pathPattern: './frontend/appflowy_flutter/assets/translations/{language}.json',
variableReferencePattern: ["@:"]
}), standardLintRules()]
};
}