From fd121f88e1dda47feb5ed79663f2022bc7db04a0 Mon Sep 17 00:00:00 2001 From: jannesblobel <72493222+jannesblobel@users.noreply.github.com> Date: Tue, 19 Sep 2023 16:12:56 +0200 Subject: [PATCH 1/5] update inlang settings --- inlang.config.js | 18 ------------------ project.inlang.json | 18 ++++++++++++++++++ 2 files changed, 18 insertions(+), 18 deletions(-) delete mode 100644 inlang.config.js create mode 100644 project.inlang.json 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..4cdd504576 --- /dev/null +++ b/project.inlang.json @@ -0,0 +1,18 @@ +{ + "$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": "./website/public/locales/{language}/*.json" + }, + "plugin.inlang.standardLintRules": { + "identicalPattern": "on" + } +} From 56e60a33074797e48ca6a88d989ee106ba87398b Mon Sep 17 00:00:00 2001 From: jannesblobel <72493222+jannesblobel@users.noreply.github.com> Date: Tue, 19 Sep 2023 16:13:38 +0200 Subject: [PATCH 2/5] chore: fix typo --- project.inlang.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project.inlang.json b/project.inlang.json index 4cdd504576..0a3021a9b2 100644 --- a/project.inlang.json +++ b/project.inlang.json @@ -10,7 +10,7 @@ "https://cdn.jsdelivr.net/npm/@inlang/message-lint-rule-missing-translation@1/dist/index.js" ], "plugin.inlang.i18next": { - "pathPattern": "./website/public/locales/{language}/*.json" + "pathPattern": "./website/public/locales/{languageTag}/*.json" }, "plugin.inlang.standardLintRules": { "identicalPattern": "on" From 84ae635d5880928a7e838614f760999c058a03be Mon Sep 17 00:00:00 2001 From: jannesblobel <72493222+jannesblobel@users.noreply.github.com> Date: Tue, 19 Sep 2023 16:15:50 +0200 Subject: [PATCH 3/5] remove one lint rule --- project.inlang.json | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/project.inlang.json b/project.inlang.json index 0a3021a9b2..8a95c040bd 100644 --- a/project.inlang.json +++ b/project.inlang.json @@ -11,8 +11,6 @@ ], "plugin.inlang.i18next": { "pathPattern": "./website/public/locales/{languageTag}/*.json" - }, - "plugin.inlang.standardLintRules": { - "identicalPattern": "on" } + } From 41d99d09b490d1a9fafd3a49e5222908df3da35f Mon Sep 17 00:00:00 2001 From: jannesblobel <72493222+jannesblobel@users.noreply.github.com> Date: Tue, 19 Sep 2023 16:26:21 +0200 Subject: [PATCH 4/5] update config --- project.inlang.json | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/project.inlang.json b/project.inlang.json index 8a95c040bd..f66a64356e 100644 --- a/project.inlang.json +++ b/project.inlang.json @@ -10,7 +10,18 @@ "https://cdn.jsdelivr.net/npm/@inlang/message-lint-rule-missing-translation@1/dist/index.js" ], "plugin.inlang.i18next": { - "pathPattern": "./website/public/locales/{languageTag}/*.json" - } + "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" + } + } + } From 6c6315b406af4ab971837bdd3388e74eed530d01 Mon Sep 17 00:00:00 2001 From: jannesblobel <72493222+jannesblobel@users.noreply.github.com> Date: Tue, 19 Sep 2023 16:41:47 +0200 Subject: [PATCH 5/5] format json --- project.inlang.json | 90 ++++++++++++++++++++++++++++++++------------- 1 file changed, 65 insertions(+), 25 deletions(-) diff --git a/project.inlang.json b/project.inlang.json index f66a64356e..2e41f80b2c 100644 --- a/project.inlang.json +++ b/project.inlang.json @@ -1,27 +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" + "$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" ], - "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" - } - } - - -} + "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