mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2025-12-30 11:22:31 +00:00
feat(i18n) add i18next compatible IDE-extension for i18n handling
This commit is contained in:
23
inlang.config.js
Normal file
23
inlang.config.js
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
/**
|
||||||
|
* @type { import("@inlang/core/config").DefineConfig }
|
||||||
|
*/
|
||||||
|
export async function defineConfig(env) {
|
||||||
|
const { default: i18nextPlugin } = await env.$import(
|
||||||
|
'https://cdn.jsdelivr.net/npm/@inlang/plugin-i18next@2/dist/index.js'
|
||||||
|
);
|
||||||
|
|
||||||
|
const { default: standardLintRules } = await env.$import(
|
||||||
|
'https://cdn.jsdelivr.net/npm/@inlang/plugin-standard-lint-rules@3/dist/index.js'
|
||||||
|
);
|
||||||
|
|
||||||
|
return {
|
||||||
|
referenceLanguage: 'main',
|
||||||
|
plugins: [
|
||||||
|
i18nextPlugin({
|
||||||
|
pathPattern: 'lang/{language}.json',
|
||||||
|
ignore: [ 'languages.json', 'translation-languages.json' ]
|
||||||
|
}),
|
||||||
|
standardLintRules()
|
||||||
|
]
|
||||||
|
};
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user