generated from buhodev/sveltekit-tailwind-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
inlang.config.js
37 lines (33 loc) · 975 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
29
30
31
32
33
34
35
36
37
/**
* @type { import("@inlang/core/config").DefineConfig }
*/
export async function defineConfig(env) {
const { default: pluginJson } = await env.$import(
'https://cdn.jsdelivr.net/gh/samuelstroschein/inlang-plugin-json@2/dist/index.js'
);
const { default: ideExtensionPlugin } = await env.$import(
'https://cdn.jsdelivr.net/npm/@inlang/ide-extension-plugin@latest/dist/index.js'
);
const { default: standardLintRules } = await env.$import(
'https://cdn.jsdelivr.net/gh/inlang/standard-lint-rules@2/dist/index.js'
);
const { default: sdkPlugin } = await env.$import(
'https://cdn.jsdelivr.net/npm/@inlang/[email protected]/dist/index.js'
);
return {
referenceLanguage: 'en',
plugins: [
pluginJson({
pathPattern: './resources/{language}.json',
variableReferencePattern: ['{', '}']
}),
standardLintRules(),
sdkPlugin({
languageNegotiation: {
strategies: [{ type: 'url' }]
}
}),
ideExtensionPlugin()
]
};
}