From e23576198ab9309d5c30e6f13ac3c16d35b42ebc Mon Sep 17 00:00:00 2001 From: Creeperkatze Date: Sun, 7 Jun 2026 17:06:21 +0200 Subject: [PATCH 1/4] Integrate with i18n ally --- .vscode/extensions.json | 2 +- .vscode/settings.json | 14 +++++++++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/.vscode/extensions.json b/.vscode/extensions.json index c6eb61eef1..f8c9acd18d 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -1,3 +1,3 @@ { - "recommendations": ["esbenp.prettier-vscode", "Vue.volar", "rust-lang.rust-analyzer"] + "recommendations": ["esbenp.prettier-vscode", "Vue.volar", "rust-lang.rust-analyzer", "lokalise.i18n-ally"] } diff --git a/.vscode/settings.json b/.vscode/settings.json index af3d483835..99d62c4567 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -31,5 +31,17 @@ "editor.defaultFormatter": "rust-lang.rust-analyzer" }, "css.lint.unknownAtRules": "ignore", - "scss.lint.unknownAtRules": "ignore" + "scss.lint.unknownAtRules": "ignore", + + "i18n-ally.localesPaths": [ + "packages/ui/src/locales", + "apps/frontend/src/locales", + "packages/moderation/src/locales" + ], + "i18n-ally.pathMatcher": "{locale}/index.{ext}", + "i18n-ally.keystyle": "flat", + "i18n-ally.sourceLanguage": "en-US", + "i18n-ally.displayLanguage": "en-US", + "i18n-ally.namespace": false, + "i18n-ally.includeSubfolders": true } From 2d10b4b6dc9a0f8d9c5161b876250627ac076cf0 Mon Sep 17 00:00:00 2001 From: Creeperkatze Date: Sun, 7 Jun 2026 19:49:11 +0200 Subject: [PATCH 2/4] Update .gitignore --- .gitignore | 1 + .vscode/i18n-ally-custom-framework.yml | 11 +++++++++++ 2 files changed, 12 insertions(+) create mode 100644 .vscode/i18n-ally-custom-framework.yml diff --git a/.gitignore b/.gitignore index f6132031b4..145849e1c0 100644 --- a/.gitignore +++ b/.gitignore @@ -22,6 +22,7 @@ node_modules !.vscode/tasks.json !.vscode/launch.json !.vscode/extensions.json +!.vscode/i18n-ally-custom-framework.yml # IDE - IntelliJ .idea/* diff --git a/.vscode/i18n-ally-custom-framework.yml b/.vscode/i18n-ally-custom-framework.yml new file mode 100644 index 0000000000..09136b5b04 --- /dev/null +++ b/.vscode/i18n-ally-custom-framework.yml @@ -0,0 +1,11 @@ +# .vscode/i18n-ally-custom-framework.yml +languageIds: + - vue + - typescript + - javascript + - typescriptreact + +usageMatchRegex: + - id:\s*['"]({key})['"] + +monopoly: true From 92c9c409487baf941794440f5dbf06d4382334f5 Mon Sep 17 00:00:00 2001 From: Creeperkatze Date: Sun, 7 Jun 2026 20:01:41 +0200 Subject: [PATCH 3/4] Cleanup --- .vscode/i18n-ally-custom-framework.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.vscode/i18n-ally-custom-framework.yml b/.vscode/i18n-ally-custom-framework.yml index 09136b5b04..6e6b2b663d 100644 --- a/.vscode/i18n-ally-custom-framework.yml +++ b/.vscode/i18n-ally-custom-framework.yml @@ -1,4 +1,3 @@ -# .vscode/i18n-ally-custom-framework.yml languageIds: - vue - typescript From 3072a5981f84def173725d2de6b9127759f9b37f Mon Sep 17 00:00:00 2001 From: Creeperkatze Date: Sun, 7 Jun 2026 20:03:57 +0200 Subject: [PATCH 4/4] Dont force display language --- .vscode/settings.json | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 99d62c4567..15ef8720e0 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,7 +1,12 @@ { "prettier.endOfLine": "lf", "editor.formatOnSave": true, - "eslint.validate": ["javascript", "javascriptreact", "typescript", "typescriptreact"], + "eslint.validate": [ + "javascript", + "javascriptreact", + "typescript", + "typescriptreact" + ], "editor.detectIndentation": false, "editor.insertSpaces": false, "files.eol": "\n", @@ -32,7 +37,6 @@ }, "css.lint.unknownAtRules": "ignore", "scss.lint.unknownAtRules": "ignore", - "i18n-ally.localesPaths": [ "packages/ui/src/locales", "apps/frontend/src/locales", @@ -41,7 +45,6 @@ "i18n-ally.pathMatcher": "{locale}/index.{ext}", "i18n-ally.keystyle": "flat", "i18n-ally.sourceLanguage": "en-US", - "i18n-ally.displayLanguage": "en-US", "i18n-ally.namespace": false, "i18n-ally.includeSubfolders": true }