diff --git a/inlang.config.js b/inlang.config.js deleted file mode 100644 index 715a67aca9..0000000000 --- a/inlang.config.js +++ /dev/null @@ -1,18 +0,0 @@ -export async function defineConfig(env) { - const { default: i18nextPlugin } = await env.$import( - "https://cdn.jsdelivr.net/npm/@inlang/plugin-i18next@2/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: [ - i18nextPlugin({ - pathPattern: "./website/public/locales/{language}/*.json", - }), - standardLintRules(), - ], - }; -} diff --git a/project.inlang.json b/project.inlang.json new file mode 100644 index 0000000000..2e41f80b2c --- /dev/null +++ b/project.inlang.json @@ -0,0 +1,67 @@ +{ + "$schema":"https://inlang.com/schema/project-settings", + "sourceLanguageTag":"en", + "languageTags":[ + "ar", + "bar", + "bg", + "ca", + "cs", + "da", + "de", + "el", + "en", + "eo", + "es", + "eu", + "fa", + "fi", + "fr", + "gl", + "he", + "hi", + "hu", + "id", + "it", + "ja", + "ko", + "lt", + "ms", + "nb-NO", + "nl", + "pl", + "pt-BR", + "ro", + "ru", + "sk", + "sl", + "sr", + "sv", + "swg", + "th", + "tr", + "uk-UA", + "vi", + "zh" + ], + "modules":[ + "https://cdn.jsdelivr.net/npm/@inlang/plugin-i18next@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.i18next":{ + "pathPattern":{ + "common":"./website/public/locales/{languageTag}/common.json", + "dashboard":"./website/public/locales/{languageTag}/dashboard.json", + "index":"./website/public/locales/{languageTag}/index.json", + "labelling":"./website/public/locales/{languageTag}/labelling.json", + "leaderboard":"./website/public/locales/{languageTag}/leaderboard.json", + "message":"./website/public/locales/{languageTag}/message.json", + "stats":"./website/public/locales/{languageTag}/stats.json", + "tasks":"./website/public/locales/{languageTag}/tasks.json", + "tos":"./website/public/locales/{languageTag}/tos.json" + } + } + } \ No newline at end of file