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/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/i18n-ally-custom-framework.yml b/.vscode/i18n-ally-custom-framework.yml new file mode 100644 index 0000000000..6e6b2b663d --- /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 af3d483835..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", @@ -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 }