Cursor rule
.cursor/rules/demo-and-i18n.mdcSmartUI demo 多语言规范
Cursor rules
Quality
50/100
Scores the file, not the repository.Length
93 words
5 headings · 0 code blocksRepository
2
— · pushed 2 days agoLast changed
3 days ago
First indexed 3 days ago.1234567# Demo 多语言89## 文案与 I18n1011- Demo 中所有用户可见文案使用 I18n:`title="{{I18n.t('basicUsage')}}"`。12- 不要在各 demo 的 wxml 中写死中文或英文。1314## 维护 strings.json1516- 新增或修改文案时,在 `example/i18n/strings.json` 中同时维护:17 - `en` 下对应 key 的英文18 - `zh` 下对应 key 的中文1920## 维护 README 和 README.en2122- 如果有新增 demo 需要同步书写到 README 和 README.en 内23- README 内的示例按中/英区块书写,不调用 I18n。24- 每一个新增的 demo 都需要带上一段描述文字25- 新增的 demo 则需要在标题后面带上当前开发的版本号 如: 这是一个新增 demo `v2.10.0`26- api 等表格内 新增属性也需要带上版本号 如: newColor `v2.10.0`27- strings.json 内的文案不需要加上版本号 版本号只需要在 README 内书写即可2829## 测试3031- Demo 入口为各组件下的 `demo/index`,测试通过加载该入口做快照;改 demo 后执行 `yarn test` 并视情况更新快照。32- 更新快照可以运行 npx jest -u33- 如果更新快照出现报错,则需要修改对应的测试用例,直到可以正常生成快照34
Also in Tuya-Community/miniapp-smart-ui
Diff this repo’s formatsOne repository carrying more than one format is the comparison this product exists for: does anyone actually write different content in each file, or is one a copy of the other?
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| Tuya-Community/miniapp-smart-ui.cursor/rules/wxs-es5.mdc · 2 | Cursor rules | no sections | 39/100 | 3 days ago | |
| Tuya-Community/miniapp-smart-ui.cursor/rules/component-structure.mdc · 2 | Cursor rules | no sections | 38/100 | 3 days ago | |
| Tuya-Community/miniapp-smart-ui.cursor/rules/miniapp-test.mdc · 2 | Cursor rules | test | 63/100 | 3 days ago | |
| Tuya-Community/miniapp-smart-uiAGENTS.md · 2 | AGENTS.md | setuptest | 34/100 | 3 days ago |
Similar configs
Same format, overlapping stack, ranked by quality.
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| hiromaily/go-crypto-wallet.cursor/rules/typescript.mdc · 126 | Cursor rules | setupbuildtestlint-format+6 | 100/100 | 3 days ago | |
| TechSquidTV/Hermes.cursor/rules/10-hermes-api.mdc · 45 | Cursor rules | testlint-formatstylearch+5 | 100/100 | 3 days ago | |
| markstev/mark-starter.cursor/rules/frontend.mdc · 0 | Cursor rules | setuptestlint-formatstyle+6 | 99/100 | 3 days ago | |
| Allymahmoud/case-intake-platform.cursor/rules/frontend.mdc · 0 | Cursor rules | setuptestlint-formatstyle+7 | 99/100 | 3 days ago | |
| dodgecfr/combatfilms-webapp.cursor/rules/frontend.mdc · 0 | Cursor rules | setuptestlint-formatstyle+7 | 99/100 | 3 days ago | |
| deifos/clipmira-subtitles.cursor/rules/frontend.mdc · 1 | Cursor rules | setuptestlint-formatstyle+7 | 99/100 | 3 days ago | |
| langflow-ai/langflow.cursor/rules/docs_development.mdc · 153k | Cursor rules | setupbuildtestlint-format+7 | 97/100 | 3 days ago | |
| TechSquidTV/Hermes.cursor/rules/20-hermes-api-tests.mdc · 45 | Cursor rules | teststyletesting-strategysecurity+3 | 97/100 | 3 days ago |
