Cursor rule
.cursor/rules/internationalization.mdcCursor rules
Quality
62/100
Scores the file, not the repository.Length
237 words
7 headings · 2 code blocksRepository
4
— · pushed 203 days agoLast changed
3 days ago
First indexed 3 days ago.12345# Internationalization (i18n) Guidelines67JAMCAM 2025 supports 4 languages with Spanish as the default locale.89## Supported Languages10- **es** (Spanish) - Default locale, no prefix in URLs11- **en** (English) - /en/ prefix12- **pt** (Portuguese) - /pt/ prefix13- **fr** (French) - /fr/ prefix1415## Translation Files16Translation keys are defined in [src/i18n/](mdc:src/i18n/):17- [es.ts](mdc:src/i18n/es.ts) - Spanish translations18- [en.ts](mdc:src/i18n/en.ts) - English translations19- [pt.ts](mdc:src/i18n/pt.ts) - Portuguese translations20- [fr.ts](mdc:src/i18n/fr.ts) - French translations21- [index.ts](mdc:src/i18n/index.ts) - i18n helper functions2223## Key Principles241. **Always add translations for all 4 languages** when adding new text252. Use **nested object structure** for organizing translations by section263. Keep **keys descriptive** and organized by component/page274. Use **interpolation** for dynamic content like dates, numbers, and names285. Consider **cultural context** - dates, currencies, and cultural references may vary296. **Image assets** have language variants in [public/images/](mdc:public/images/) and [src/assets/images/banner/](mdc:src/assets/images/banner/)3031## Translation Key Structure32```typescript33export const translations = {34 header: {35 navigation: {36 home: "Inicio",37 about: "Acerca de",38 // ...39 }40 },41 sections: {42 about: {43 title: "Título de la sección",44 description: "Descripción..."45 }46 }47}48```4950## Usage in Components51```astro52---53import { getTranslation } from '@/i18n';54const t = getTranslation(Astro.currentLocale);55---56<h1>{t.sections.about.title}</h1>57```5859## Localized Assets60- Banner images have language variants: `banner-{page}-{device}-{locale}.webp`61- Some graphics contain text and need localized versions62- PDF documents in [public/images/docs/](mdc:public/images/docs/) may have multilingual versions63description:64globs:65alwaysApply: false66---67
Also in MiloAgudelo/jamcam-astro
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 |
|---|---|---|---|---|---|
| MiloAgudelo/jamcam-astro.cursor/rules/asset-management.mdc · 4 | Cursor rules | stylearchperformance | 62/100 | 3 days ago | |
| MiloAgudelo/jamcam-astro.cursor/rules/astro-components.mdc · 4 | Cursor rules | stylearchuiperformance | 66/100 | 3 days ago | |
| MiloAgudelo/jamcam-astro.cursor/rules/development-workflow.mdc · 4 | Cursor rules | setupbuildteststyle+6 | 81/100 | 3 days ago | |
| MiloAgudelo/jamcam-astro.cursor/rules/jamcam-project-overview.mdc · 4 | Cursor rules | arch | 48/100 | 3 days ago | |
| MiloAgudelo/jamcam-astro.cursor/rules/styling-system.mdc · 4 | Cursor rules | stylearchui | 66/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 |
