Loading...
Loading...
Implement internationalization (i18n) best practices for web and mobile applications to support multiple languages and locales.
npx skill4agent add mindrally/skills internationalization-i18n// Use translation hooks
const { t } = useTranslation('common');
// Basic translation
<h1>{t('welcome.title')}</h1>
// With interpolation
<p>{t('greeting', { name: userName })}</p>
// With pluralization
<span>{t('items', { count: itemCount })}</span>useI18nlocales/
en/
common.json
auth.json
errors.json
es/
common.json
auth.json
errors.json
fr/
common.json
auth.json
errors.jsonauth.login.buttonerrors.network.timeout/* Use logical properties */
.element {
margin-inline-start: 1rem;
padding-inline-end: 0.5rem;
}