1
0
mirror of https://github.com/mifi/lossless-cut.git synced 2024-11-21 18:02:35 +01:00

feat: add ide-extension for better i18n handling

This commit is contained in:
Nils Jacobsen 2023-07-10 16:06:05 +02:00
parent 07731446bc
commit d54d1a2825
2 changed files with 27 additions and 0 deletions

5
.vscode/extensions.json vendored Normal file
View File

@ -0,0 +1,5 @@
{
"recommendations": [
"inlang.vs-code-extension"
]
}

22
inlang.config.js Normal file
View File

@ -0,0 +1,22 @@
/**
* @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@3.0.1/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: [
i18nextPlugin({
pathPattern: "public/locales/{language}/translation.json",
}),
standardLintRules(),
],
}
}