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: ":"
|
||||
33
.vscode/settings.json
vendored
Normal file
33
.vscode/settings.json
vendored
Normal 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"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user