Skip to content
This repository was archived by the owner on Jun 24, 2025. It is now read-only.

Commit ece343a

Browse files
committed
dev: Improve custom translation framework slightly
1 parent 2fb05ab commit ece343a

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

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

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
languageIds:
44
- javascript
55
- typescript
6-
- javascriptreact
7-
- typescriptreact
86

97
# An array of RegExes to find the key usage. **The key should be captured in the first match group**.
108
# You should unescape RegEx strings in order to fit in the YAML file
@@ -24,10 +22,8 @@ scopeRangeRegex: "useTranslation\\(\\s*\\[?\\s*['\"`](.*?)['\"`]"
2422

2523
# An array of strings containing refactor templates.
2624
# The "$1" will be replaced by the keypath specified.
27-
# Optional: uncomment the following two lines to use
28-
29-
# refactorTemplates:
30-
# - i18n.get("$1")
25+
refactorTemplates:
26+
- t("$1")
3127

3228

3329
# If set to true, only enables this custom framework (will disable all built-in frameworks)

0 commit comments

Comments
 (0)