Skip to content

Build your personal knowledge base with Trilium Notes

dev: Improve custom translation framework slightly

Elian Doranece343ac0968
diff --git a/.vscode/i18n-ally-custom-framework.yml b/.vscode/i18n-ally-custom-framework.yml
index 66b79a69dc..aeba9668ce 100644
--- a/.vscode/i18n-ally-custom-framework.yml
+++ b/.vscode/i18n-ally-custom-framework.yml
@@ -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)