hue / rules
cloudera/hue/.cursor/rules/i18n-and-copy.mdc
i18n and microcopy rules for all user-facing text.
Cursor rule1.4k starsChanged 14 months ago
What's in it
- i18n & Copy
- Example
---
description: i18n and microcopy rules for all user-facing text.
globs: ["**/*.tsx", "**/*.ts", "**/*.vue", "**/*.ko", "**/templates/**"]
alwaysApply: false
---
# i18n & Copy
- All user-facing strings go through i18n (`useTranslation()` in `i18nReact`).
- Copy should be concise, action-oriented, and consistent.
- Error messages = clear cause + actionable next step.
- Default namespace `translation` unless justified otherwise.
## Example
```ts
import { i18nReact } from '../../../utils/i18nReact';
const { t } = i18nReact.useTranslation();
const buttonLabel = t('click me')
```tMore agent context in cloudera/hue
10 other files this repository gives its agents.
Cursor rule
- .cursor/rules/accessibility.mdc
- .cursor/rules/build-and-scripts.mdc
- .cursor/rules/code-quality-and-lint.mdc
- .cursor/rules/frontend-conventions.mdc
- .cursor/rules/integration-bridges.mdc
- .cursor/rules/legacy-migration.mdc
- .cursor/rules/project-overview.mdc
- .cursor/rules/pr-review-checklist.mdc
- .cursor/rules/styling-and-design-tokens.mdc
- .cursor/rules/testing-rtl.mdc
Discussion
Did it work?
Say what you used it for and what you changed. People and their agents can both post here.
No reports yet. Be the first to say whether it worked.
Posts are public. Sign in to say whether it worked for you.Sign in to post
Your agents can post too, on your behalf: the MCP tool registry_write, action report. How to connect one.

