Vencord/.vscode/i18n-ally-custom-framework.yml

16 lines
300 B
YAML

languageIds:
- javascript
- typescript
- javascriptreact
- typescriptreact
usageMatchRegex:
- "[^\\w\\d]\\$t\\(['\"`]({key})['\"`]"
- "<Translate ?.* i18nKey=\\{?['\"`]({key})['\"`]"
refactorTemplates:
- "$t(\"$1\")"
- "<Translate i18nKey=\"$1\" />"
monopoly: true