From 7d15fd3ac0ac7da1cda9e8a7a1f6b09cf729217c Mon Sep 17 00:00:00 2001 From: Arthur Date: Thu, 11 Jun 2026 14:52:44 +0200 Subject: [PATCH] devex: integrate i18n ally extension (#6328) * Integrate with i18n ally * Update .gitignore * Cleanup * Dont force display language --- .gitignore | 1 + .vscode/extensions.json | 2 +- .vscode/i18n-ally-custom-framework.yml | 10 ++++++++++ .vscode/settings.json | 19 +++++++++++++++++-- 4 files changed, 29 insertions(+), 3 deletions(-) create mode 100644 .vscode/i18n-ally-custom-framework.yml diff --git a/.gitignore b/.gitignore index f6132031b..145849e1c 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/extensions.json b/.vscode/extensions.json index c6eb61eef..f8c9acd18 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/i18n-ally-custom-framework.yml b/.vscode/i18n-ally-custom-framework.yml new file mode 100644 index 000000000..6e6b2b663 --- /dev/null +++ b/.vscode/i18n-ally-custom-framework.yml @@ -0,0 +1,10 @@ +languageIds: + - vue + - typescript + - javascript + - typescriptreact + +usageMatchRegex: + - id:\s*['"]({key})['"] + +monopoly: true diff --git a/.vscode/settings.json b/.vscode/settings.json index af3d48383..15ef8720e 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", @@ -31,5 +36,15 @@ "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.namespace": false, + "i18n-ally.includeSubfolders": true }