configure vscode i18n extension (#10409)

and add recommended vscode extensions
This commit is contained in:
Kyℓe Hensel
2024-08-17 03:28:34 +10:00
committed by GitHub
parent 342eeb5cc5
commit c6e6b4240a
4 changed files with 30 additions and 1 deletions

1
.gitignore vendored
View File

@@ -1,6 +1,5 @@
.DS_Store
.esm-cache
.vscode/
.idea/
/node_modules/
/.tx/tmp/

8
.vscode/extensions.json vendored Normal file
View File

@@ -0,0 +1,8 @@
{
"recommendations": [
"EditorConfig.EditorConfig",
"eamodio.gitlens",
"lokalise.i18n-ally",
"dbaeumer.vscode-eslint"
]
}

17
.vscode/i18n-ally-custom-framework.yml vendored Normal file
View File

@@ -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

5
.vscode/settings.json vendored Normal file
View File

@@ -0,0 +1,5 @@
{
"i18n-ally.readonly": true,
"i18n-ally.localesPaths": ["data"],
"i18n-ally.pathMatcher": "core.yaml"
}