From ece343ac0968dfe030f6bbf0b3bd6bba947f1870 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Tue, 23 Jul 2024 23:27:00 +0300 Subject: [PATCH] dev: Improve custom translation framework slightly --- .vscode/i18n-ally-custom-framework.yml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/.vscode/i18n-ally-custom-framework.yml b/.vscode/i18n-ally-custom-framework.yml index 66b79a69d..aeba9668c 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)