i18n

On this page 5

stacks-i18n · Domain packages · model-invoked

Translations, locale management, pluralization and date, number and currency formatting, plus how translation files are loaded.

When to reach for it

  • Translations
  • Locale management
  • Pluralization
  • date/number/currency formatting
  • Loading translation files

Covers

@stacksjs/i18n with translator, formatter, loader, pluralization modules.

Inside the skill

The sections an agent reads once the skill loads.

  • Key Paths
  • Source Files
  • Core Types
  • Translation API
  • Pluralization
  • Formatting
  • Translation File Loader
  • Locale Files
  • Gotchas

Where the code lives

  • Core package: storage/framework/core/i18n/src/
  • Locale files: locales/ (en.yml, de.yml)
  • Package: @stacksjs/i18n

Using it

This one is model-invoked. Your agent reaches for it on its own when the task matches, and you can also call it by name:

/stacks-i18n

Source: stacks-i18n/SKILL.md. Shadow it for one project with app/Skills/stacks-i18n/SKILL.md, then re-run buddy setup:ai. See Writing your own.