-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
inlang.config.js
28 lines (26 loc) · 924 Bytes
/
inlang.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/**
* @type { import("@inlang/core/config").DefineConfig }
*/
export async function defineConfig(env) {
const { default: jsonPlugin } = await env.$import(
'https://cdn.jsdelivr.net/npm/@inlang/plugin-i18next@3/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: 'en',
plugins: [
jsonPlugin({
pathPattern: {
blog: './i18n/{language}/docusaurus-plugin-content-blog/options.json',
docs: './i18n/{language}/docusaurus-plugin-content-docs/current.json',
'theme-footer': './i18n/{language}/docusaurus-theme-classic/footer.json',
'theme-footer': './i18n/{language}/docusaurus-theme-classic/footer.json',
code: './i18n/{language}/code.json',
},
}),
standardLintRules(),
],
}
}