mirror of
https://github.com/mifi/lossless-cut.git
synced 2024-11-22 02:12:30 +01:00
feat: add ide-extension for better i18n handling
This commit is contained in:
parent
07731446bc
commit
d54d1a2825
5
.vscode/extensions.json
vendored
Normal file
5
.vscode/extensions.json
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
{
|
||||
"recommendations": [
|
||||
"inlang.vs-code-extension"
|
||||
]
|
||||
}
|
22
inlang.config.js
Normal file
22
inlang.config.js
Normal 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(),
|
||||
],
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user