agentleFS
Sign inSign up

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

  1. i18n & Copy
  2. 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')
```t

More agent context in cloudera/hue

10 other files this repository gives its agents.

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.