|
@@ -0,0 +1,23 @@
|
|
1
|
+/**
|
|
2
|
+ * @type { import("@inlang/core/config").DefineConfig }
|
|
3
|
+ */
|
|
4
|
+export async function defineConfig(env) {
|
|
5
|
+ const { default: i18nextPlugin } = await env.$import(
|
|
6
|
+ 'https://cdn.jsdelivr.net/npm/@inlang/plugin-i18next@2/dist/index.js'
|
|
7
|
+ );
|
|
8
|
+
|
|
9
|
+ const { default: standardLintRules } = await env.$import(
|
|
10
|
+ 'https://cdn.jsdelivr.net/npm/@inlang/plugin-standard-lint-rules@3/dist/index.js'
|
|
11
|
+ );
|
|
12
|
+
|
|
13
|
+ return {
|
|
14
|
+ referenceLanguage: 'main',
|
|
15
|
+ plugins: [
|
|
16
|
+ i18nextPlugin({
|
|
17
|
+ pathPattern: 'lang/{language}.json',
|
|
18
|
+ ignore: [ 'languages.json', 'translation-languages.json' ]
|
|
19
|
+ }),
|
|
20
|
+ standardLintRules()
|
|
21
|
+ ]
|
|
22
|
+ };
|
|
23
|
+}
|