chore: 初始化仓库

This commit is contained in:
Lydanne
2026-02-15 22:02:21 +08:00
commit 08d011d63f
381 changed files with 87202 additions and 0 deletions

View 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: ":"

33
.vscode/settings.json vendored Normal file
View File

@@ -0,0 +1,33 @@
{
"editor.formatOnSave": true,
"oxc.fmt.experimental": true,
"editor.defaultFormatter": "oxc.oxc-vscode",
"[typescript]": {
"editor.defaultFormatter": "oxc.oxc-vscode"
},
"cSpell.words": ["Gitea", "spaceflow"],
"typescript.preferences.preferTypeOnlyAutoImports": true,
"i18n-ally-next.sourceLanguage": "zh-cn",
"i18n-ally-next.displayLanguage": "zh-cn",
"i18n-ally-next.keystyle": "flat",
"i18n-ally-next.extract.keygenStrategy": "template",
"i18n-ally-next.extract.keygenTemplate": "{{package_dirname}}:",
"i18n-ally-next.namespace": true,
"i18n-ally-next.defaultNamespace": "translation",
"i18n-ally-next.dirStructure": "dir",
"i18n-ally-next.pathMatcher": "{locale}/{namespace}.{ext}",
"i18n-ally-next.extract.targetPickingStrategy": "auto",
"i18n-ally-next.annotationInPlace": true,
"i18n-ally-next.annotationInPlaceFullMatch": true,
"i18n-ally-next.annotationBrackets": ["`", "`"],
"i18n-ally-next.enabledFrameworks": [ "custom" ],
"i18n-ally-next.localesPaths": [
"cli/src/locales",
"core/src/locales",
"commands/ci-scripts/src/locales",
"commands/ci-shell/src/locales",
"commands/period-summary/src/locales",
"commands/publish/src/locales",
"commands/review/src/locales"
]
}