mirror of
https://github.com/Lydanne/spaceflow.git
synced 2026-03-11 19:52:45 +08:00
chore: 初始化仓库
This commit is contained in:
15
.vscode/i18n-ally-next-custom-framework.yml
vendored
Normal file
15
.vscode/i18n-ally-next-custom-framework.yml
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
# 自定义框架配置:匹配 @spaceflow/core 导出的 t() 函数
|
||||
languageIds:
|
||||
- typescript
|
||||
|
||||
# 匹配 t("key") 和 t("namespace:key") 调用
|
||||
usageMatchRegex:
|
||||
- "\\Wt\\(\\s*['\"`]({key})['\"`]"
|
||||
|
||||
# 提取模板
|
||||
refactorTemplates:
|
||||
- "t('$1')"
|
||||
|
||||
# 启用 namespace,使用 : 作为分隔符
|
||||
namespace: true
|
||||
namespaceDelimiter: ":"
|
||||
Reference in New Issue
Block a user