feat(vscode): integrate i18n with react

This commit is contained in:
Elian Doran 2025-08-04 12:59:13 +03:00
parent e619a6ef7c
commit c89737ae7b
No known key found for this signature in database

View File

@ -3,6 +3,7 @@
languageIds: languageIds:
- javascript - javascript
- typescript - typescript
- typescriptreact
- html - html
# An array of RegExes to find the key usage. **The key should be captured in the first match group**. # An array of RegExes to find the key usage. **The key should be captured in the first match group**.
@ -25,6 +26,7 @@ scopeRangeRegex: "useTranslation\\(\\s*\\[?\\s*['\"`](.*?)['\"`]"
# The "$1" will be replaced by the keypath specified. # The "$1" will be replaced by the keypath specified.
refactorTemplates: refactorTemplates:
- t("$1") - t("$1")
- {t("$1")}
- ${t("$1")} - ${t("$1")}
- <%= t("$1") %> - <%= t("$1") %>