mirror of
https://github.com/danbulant/Portfolio
synced 2026-06-09 17:52:14 +00:00
chore: add VSCode i18n ally settings
This commit is contained in:
parent
783ed2baf7
commit
e83805743a
2 changed files with 24 additions and 0 deletions
18
frontend/.vscode/i18n-ally-custom-framework.yml
vendored
Normal file
18
frontend/.vscode/i18n-ally-custom-framework.yml
vendored
Normal file
|
|
@ -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
|
||||||
6
frontend/.vscode/settings.json
vendored
Normal file
6
frontend/.vscode/settings.json
vendored
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"i18n-ally.pathMatcher": "{locale}/index.{ext}",
|
||||||
|
"i18n-ally.enabledParsers": ["ts", "js"],
|
||||||
|
"i18n-ally.keystyle": "nested",
|
||||||
|
"i18n-ally.localesPaths": ["src/translations"]
|
||||||
|
}
|
||||||
Loading…
Reference in a new issue