diff --git a/.gitignore b/.gitignore index c156ff72e..be8c6720b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,5 @@ .DS_Store .esm-cache -.vscode/ .idea/ /node_modules/ /.tx/tmp/ diff --git a/.vscode/extensions.json b/.vscode/extensions.json new file mode 100644 index 000000000..73228eb2f --- /dev/null +++ b/.vscode/extensions.json @@ -0,0 +1,8 @@ +{ + "recommendations": [ + "EditorConfig.EditorConfig", + "eamodio.gitlens", + "lokalise.i18n-ally", + "dbaeumer.vscode-eslint" + ] +} diff --git a/.vscode/i18n-ally-custom-framework.yml b/.vscode/i18n-ally-custom-framework.yml new file mode 100644 index 000000000..6b72aa620 --- /dev/null +++ b/.vscode/i18n-ally-custom-framework.yml @@ -0,0 +1,17 @@ +# see https://github.com/antfu/i18n-ally/wiki/Custom-Framework +languageIds: + - javascript + - typescript + - javascriptreact + - typescriptreact + +usageMatchRegex: + - "[^\\w\\d]t\\.append\\(['\"`]({key})['\"`]" # matches t.append("{key}" + - "[^\\w\\d]t\\.html\\(['\"`]({key})['\"`]" # matches t.html("{key}" + - "[^\\w\\d]t\\(['\"`]({key})['\"`]" # matches t.html("{key}" + +scopeRangeRegex: "(en)" + +refactorTemplates: + +monopoly: true diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 000000000..06b35bf76 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,5 @@ +{ + "i18n-ally.readonly": true, + "i18n-ally.localesPaths": ["data"], + "i18n-ally.pathMatcher": "core.yaml" +}