From aj-geddes-useful-ai-prompts-4
Implements internationalization and localization including message extraction, translation catalogs, pluralization rules, date/time/number formatting, and RTL support using i18next, gettext, and React-Intl.
How this skill is triggered — by the user, by Claude, or both
Slash command
/aj-geddes-useful-ai-prompts-4:internationalization-i18nThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
- [Overview](#overview)
references/date-and-time-formatting.mdreferences/i18next-javascripttypescript.mdreferences/locale-detection.mdreferences/number-and-currency-formatting.mdreferences/pluralization-rules.mdreferences/python-i18n-gettext.mdreferences/react-intl-formatjs.mdreferences/rtl-right-to-left-language-support.mdreferences/server-side-i18n.mdreferences/translation-management.mdtemplates/component-template.tsxComprehensive guide to implementing internationalization and localization in applications. Covers message translation, pluralization, date/time/number formatting, RTL languages, and integration with popular i18n libraries.
Minimal working example:
// i18n.ts
import i18next from "i18next";
import Backend from "i18next-http-backend";
import LanguageDetector from "i18next-browser-languagedetector";
await i18next
.use(Backend)
.use(LanguageDetector)
.init({
fallbackLng: "en",
debug: process.env.NODE_ENV === "development",
interpolation: {
escapeValue: false, // React already escapes
},
backend: {
loadPath: "/locales/{{lng}}/{{ns}}.json",
},
detection: {
order: ["querystring", "cookie", "localStorage", "navigator"],
caches: ["localStorage", "cookie"],
},
});
// ... (see reference guides for full implementation)
Detailed implementations in the references/ directory:
| Guide | Contents |
|---|---|
| i18next (JavaScript/TypeScript) | i18next (JavaScript/TypeScript) |
| React-Intl (Format.js) | React-Intl (Format.js) |
| Python i18n (gettext) | Python i18n (gettext) |
| Date and Time Formatting | Date and Time Formatting |
| Number and Currency Formatting | Number and Currency Formatting |
| Pluralization Rules | Pluralization Rules |
| RTL (Right-to-Left) Language Support | RTL (Right-to-Left) Language Support |
| Translation Management | Translation Management |
| Locale Detection | Locale Detection |
| Server-Side i18n | Server-Side i18n |
npx claudepluginhub aj-geddes/useful-ai-promptsBuilds multi-language applications with next-intl, react-i18next, ICU messages, RTL support, and locale-aware formatting. Activates on i18n, internationalization, translation, or localization mentions.
Implements multi-language support using i18next, gettext, Intl API with pluralization, date/currency formatting, translation workflows, and RTL support for multilingual apps.
Guides internationalization and localization: detecting hardcoded strings, managing translation files, implementing RTL support, and using i18n libraries (react-i18next, next-intl, gettext).