From e83805743a5daa8c41a0e44a4282d6e9eb8b3d89 Mon Sep 17 00:00:00 2001 From: EETagent Date: Fri, 20 Jan 2023 13:12:56 +0100 Subject: [PATCH] chore: add VSCode i18n ally settings --- .../.vscode/i18n-ally-custom-framework.yml | 18 ++++++++++++++++++ frontend/.vscode/settings.json | 6 ++++++ 2 files changed, 24 insertions(+) create mode 100644 frontend/.vscode/i18n-ally-custom-framework.yml create mode 100644 frontend/.vscode/settings.json diff --git a/frontend/.vscode/i18n-ally-custom-framework.yml b/frontend/.vscode/i18n-ally-custom-framework.yml new file mode 100644 index 0000000..c17d03b --- /dev/null +++ b/frontend/.vscode/i18n-ally-custom-framework.yml @@ -0,0 +1,18 @@ +languageIds: + - typescript + - javascript + - typescriptreact + - javascriptreact + - svelte + - html + +usageMatchRegex: + - "\\$?LL\\.({key})\\(((\\{.*\\})|([^)]*))\\)" + +refactorTemplates: + - '{$LL.$1()}' + - '{LL.$1()}' + - '$LL.$1()' + - 'LL.$1()' + +monopoly: true diff --git a/frontend/.vscode/settings.json b/frontend/.vscode/settings.json new file mode 100644 index 0000000..c7be7fc --- /dev/null +++ b/frontend/.vscode/settings.json @@ -0,0 +1,6 @@ +{ + "i18n-ally.pathMatcher": "{locale}/index.{ext}", + "i18n-ally.enabledParsers": ["ts", "js"], + "i18n-ally.keystyle": "nested", + "i18n-ally.localesPaths": ["src/translations"] +}