fix: update inlang settings (#1529)

This commit is contained in:
Jannes Blobel 2023-09-20 10:49:08 +02:00 committed by GitHub
parent 82c3c6878b
commit 99c71a2a0a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 19 additions and 17 deletions

View file

@ -1,17 +0,0 @@
export async function defineConfig(env) {
const { default: pluginJson } = await env.$import(
'https://cdn.jsdelivr.net/gh/samuelstroschein/inlang-plugin-json@2.3.1/dist/index.js'
);
const { default: standardLintRules } = await env.$import(
'https://cdn.jsdelivr.net/gh/inlang/standard-lint-rules@2/dist/index.js'
);
return {
referenceLanguage: 'en',
plugins: [pluginJson({
pathPattern: './i18n/{language}.json',
variableReferencePattern: ["{", "}"]
}), standardLintRules()]
};
}

19
project.inlang.json Normal file
View file

@ -0,0 +1,19 @@
{
"$schema":"https://inlang.com/schema/project-settings",
"sourceLanguageTag": "en",
"languageTags": ["ca", "cs-cz", "cy", "de", "en", "es", "fi", "fr", "hu", "it", "jp", "ml", "nl", "pl", "pt-BR", "pt", "ro", "ru", "se", "sk", "tr", "vi", "zh-CN", "zh-TW"],
"modules": [
"https://cdn.jsdelivr.net/npm/@inlang/plugin-json@4/dist/index.js",
"https://cdn.jsdelivr.net/npm/@inlang/message-lint-rule-empty-pattern@1/dist/index.js",
"https://cdn.jsdelivr.net/npm/@inlang/message-lint-rule-identical-pattern@1/dist/index.js",
"https://cdn.jsdelivr.net/npm/@inlang/message-lint-rule-without-source@1/dist/index.js",
"https://cdn.jsdelivr.net/npm/@inlang/message-lint-rule-missing-translation@1/dist/index.js"
],
"plugin.inlang.json": {
"pathPattern": "./i18n/{languageTag}.json",
"variableReferencePattern": [
"{",
"}"
]
}
}