diff --git a/inlang.config.js b/inlang.config.js deleted file mode 100644 index 4c16b62b..00000000 --- a/inlang.config.js +++ /dev/null @@ -1,28 +0,0 @@ -// @ts-check - -/** - * @type { import("@inlang/core/config").DefineConfig } - */ -export async function defineConfig(env) { - const plugin = await env.$import( - "https://cdn.jsdelivr.net/gh/samuelstroschein/inlang-plugin-json@1/dist/index.js" - ); - - const { standardLintRules } = await env.$import( - "https://cdn.jsdelivr.net/gh/inlang/standard-lint-rules@1/dist/index.js" - ); - - const pluginConfig = { - pathPattern: "./custom_components/frigate/translations/{language}.json", - }; - - return { - referenceLanguage: "en", - languages: await plugin.getLanguages({ ...env, pluginConfig }), - readResources: (args) => plugin.readResources({ ...args, ...env, pluginConfig }), - writeResources: (args) => plugin.writeResources({ ...args, ...env, pluginConfig }), - lint: { - rules: [standardLintRules()], - }, - }; -} diff --git a/project.inlang.json b/project.inlang.json new file mode 100644 index 00000000..ab59fea2 --- /dev/null +++ b/project.inlang.json @@ -0,0 +1,14 @@ +{ + "$schema":"https://inlang.com/schema/project-settings", + "sourceLanguageTag": "en", + "languageTags": ["de","en","pt_br","pt-BR"], + "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": "./custom_components/frigate/translations/{languageTag}.json" + } +}