Skip to content

Commit

Permalink
configure vscode i18n extension (#10409)
Browse files Browse the repository at this point in the history
and add recommended vscode extensions
  • Loading branch information
k-yle authored Aug 16, 2024
1 parent 342eeb5 commit c6e6b42
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 1 deletion.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
.DS_Store
.esm-cache
.vscode/
.idea/
/node_modules/
/.tx/tmp/
Expand Down
8 changes: 8 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"recommendations": [
"EditorConfig.EditorConfig",
"eamodio.gitlens",
"lokalise.i18n-ally",
"dbaeumer.vscode-eslint"
]
}
17 changes: 17 additions & 0 deletions .vscode/i18n-ally-custom-framework.yml
Original file line number Diff line number Diff line change
@@ -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 changes: 5 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"i18n-ally.readonly": true,
"i18n-ally.localesPaths": ["data"],
"i18n-ally.pathMatcher": "core.yaml"
}

0 comments on commit c6e6b42

Please sign in to comment.