diff --git a/inlang.config.js b/inlang.config.js deleted file mode 100644 index 7bc8d5b..0000000 --- a/inlang.config.js +++ /dev/null @@ -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()] - }; -} diff --git a/project.inlang.json b/project.inlang.json new file mode 100644 index 0000000..41e2217 --- /dev/null +++ b/project.inlang.json @@ -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": [ + "{", + "}" + ] + } +}