mirror of
https://github.com/CharaChorder/DeviceManager.git
synced 2026-01-20 08:52:59 +00:00
feat: i18n
This commit is contained in:
25
inlang.config.js
Normal file
25
inlang.config.js
Normal file
@@ -0,0 +1,25 @@
|
||||
/**
|
||||
* @type {import('@inlang/core/config').DefineConfig}
|
||||
*/
|
||||
export async function defineConfig(env) {
|
||||
const {default: pluginYaml} = await env.$import(
|
||||
"https://cdn.jsdelivr.net/gh/felixhaeberle/inlang-plugin-yaml@2.0.1/dist/index.js",
|
||||
)
|
||||
const {default: sdkPlugin} = await env.$import(
|
||||
"https://cdn.jsdelivr.net/npm/@inlang/sdk-js-plugin@0.10.1/dist/index.js",
|
||||
)
|
||||
|
||||
return {
|
||||
referenceLanguage: "en",
|
||||
plugins: [
|
||||
sdkPlugin({
|
||||
languageNegotiation: {
|
||||
strategies: [{type: "localStorage"}],
|
||||
},
|
||||
}),
|
||||
pluginYaml({
|
||||
pathPattern: "./languages/{language}.yml",
|
||||
}),
|
||||
],
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user