RuleStack

Configs

Stacks

Compare

Diff

RuleStack

Configs

Stacks

Compare

Diff

Read API

RuleStack

Configs

Stacks

Compare

Diff

Read API

Configs/Cursor rules/Tuya-Community/miniapp-smart-ui

Cursor rule

.cursor/rules/demo-and-i18n.mdc

SmartUI demo 多语言规范

Cursor rules

Quality

50/100

Scores the file, not the repository.

Length

93 words

5 headings · 0 code blocks

Repository

2

— · pushed 2 days ago

Last changed

3 days ago

First indexed 3 days ago.
Tuya-Community/miniapp-smart-ui/.cursor/rules/demo-and-i18n.mdcRawGitHub
1---
2description: SmartUI demo 多语言规范
3globs: packages/**/demo/**/\*
4alwaysApply: false
5---
6 
7# Demo 多语言
8 
9## 文案与 I18n
10 
11- Demo 中所有用户可见文案使用 I18n:`title="{{I18n.t('basicUsage')}}"`。
12- 不要在各 demo 的 wxml 中写死中文或英文。
13 
14## 维护 strings.json
15 
16- 新增或修改文案时,在 `example/i18n/strings.json` 中同时维护:
17 - `en` 下对应 key 的英文
18 - `zh` 下对应 key 的中文
19 
20## 维护 README 和 README.en
21 
22- 如果有新增 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 内书写即可
28 
29## 测试
30 
31- Demo 入口为各组件下的 `demo/index`,测试通过加载该入口做快照;改 demo 后执行 `yarn test` 并视情况更新快照。
32- 更新快照可以运行 npx jest -u
33- 如果更新快照出现报错,则需要修改对应的测试用例,直到可以正常生成快照
34 

Commands it names

  • yarn test

Sections

  • Demo 多语言
  • 文案与 I18n
  • 维护 strings.json
  • 维护 README 和 README.en
  • 测试

What it covers

testdocs

Stack — with the evidence

typescript

(1.00)

jest

(1.00)

vue

(0.70)

javascript

(0.60)

eslint

(0.60)

github-actions

(0.60)

Glob targeting

  • packages/**/demo/**/\*

Format

Cursor rules

The most expressive format here. Many small .mdc files, each with frontmatter declaring when it should load, so a rule about migrations only enters context when a migration is open. Costs the most to maintain and only one editor reads it.

What the corpus says about it

Repository

Owner
Tuya-Community
Language
—
License
—
Archived
no

All configs in this repo

Also in Tuya-Community/miniapp-smart-ui

Diff this repo’s formats

One 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?

The other instruction files in this repository
RepositoryFormatStackCoversScoreChanged
Tuya-Community/miniapp-smart-ui.cursor/rules/wxs-es5.mdc · 2Cursor rulestypescriptjest+4no sections39/1003 days ago
Tuya-Community/miniapp-smart-ui.cursor/rules/component-structure.mdc · 2Cursor rulestypescriptjest+4no sections38/1003 days ago
Tuya-Community/miniapp-smart-ui.cursor/rules/miniapp-test.mdc · 2Cursor rulestypescriptjest+4test63/1003 days ago
Tuya-Community/miniapp-smart-uiAGENTS.md · 2AGENTS.mdtypescriptjest+4setuptest34/1003 days ago
Diff against .cursor/rules/wxs-es5.mdc Diff against .cursor/rules/component-structure.mdc Diff against .cursor/rules/miniapp-test.mdc Diff against AGENTS.md

Similar configs

Same format, overlapping stack, ranked by quality.

Same format, overlapping stack, ranked by quality
RepositoryFormatStackCoversScoreChanged
hiromaily/go-crypto-wallet.cursor/rules/typescript.mdc · 126Cursor rulesgobun+5setupbuildtestlint-format+6100/1003 days ago
TechSquidTV/Hermes.cursor/rules/10-hermes-api.mdc · 45Cursor rulestypescriptpytest+15testlint-formatstylearch+5100/1003 days ago
markstev/mark-starter.cursor/rules/frontend.mdc · 0Cursor rulestypescriptturborepo+14setuptestlint-formatstyle+699/1003 days ago
Allymahmoud/case-intake-platform.cursor/rules/frontend.mdc · 0Cursor rulestypescriptturborepo+13setuptestlint-formatstyle+799/1003 days ago
dodgecfr/combatfilms-webapp.cursor/rules/frontend.mdc · 0Cursor rulestypescriptturborepo+15setuptestlint-formatstyle+799/1003 days ago
deifos/clipmira-subtitles.cursor/rules/frontend.mdc · 1Cursor rulestypescriptnextjs+5setuptestlint-formatstyle+799/1003 days ago
langflow-ai/langflow.cursor/rules/docs_development.mdc · 153kCursor rulespythonnode+16setupbuildtestlint-format+797/1003 days ago
TechSquidTV/Hermes.cursor/rules/20-hermes-api-tests.mdc · 45Cursor rulestypescriptpytest+15teststyletesting-strategysecurity+397/1003 days ago
RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack

RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack

RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack