dev: Improve custom translation framework slightly

This commit is contained in:
Elian Doran 2024-07-23 23:27:00 +03:00
parent 2fb05ab37d
commit ece343ac09
No known key found for this signature in database

View File

@ -3,8 +3,6 @@
languageIds:
- javascript
- typescript
- javascriptreact
- typescriptreact
# An array of RegExes to find the key usage. **The key should be captured in the first match group**.
# You should unescape RegEx strings in order to fit in the YAML file
@ -24,10 +22,8 @@ scopeRangeRegex: "useTranslation\\(\\s*\\[?\\s*['\"`](.*?)['\"`]"
# An array of strings containing refactor templates.
# The "$1" will be replaced by the keypath specified.
# Optional: uncomment the following two lines to use
# refactorTemplates:
# - i18n.get("$1")
refactorTemplates:
- t("$1")
# If set to true, only enables this custom framework (will disable all built-in frameworks)