Files
spaceflow/.vscode/i18n-ally-next-custom-framework.yml
2026-02-15 22:02:21 +08:00

16 lines
337 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 自定义框架配置:匹配 @spaceflow/core 导出的 t() 函数
languageIds:
- typescript
# 匹配 t("key") 和 t("namespace:key") 调用
usageMatchRegex:
- "\\Wt\\(\\s*['\"`]({key})['\"`]"
# 提取模板
refactorTemplates:
- "t('$1')"
# 启用 namespace使用 : 作为分隔符
namespace: true
namespaceDelimiter: ":"