io.github.rog0x/i18n
Locale detect, translations, plurals for AI agents
Versions
1.0.2latestTools 5
analyze_translations Analyze translation JSON files for consistency across locales. Finds missing keys, extra keys, structural mismatches, interpolation variable differences, and empty values. Optionally identifies unused keys given a list of keys referenced in source code.
extract_i18n_keys Extract hardcoded user-facing strings from source code that should be internationalized. Finds strings in JSX attributes, HTML templates, console.log calls, error messages, dialogs, and labeled variable assignments. Returns each string with its location, context, and a suggested i18n key name.
plural_rules Generate plural form categories and rules for a given locale. Shows which plural categories a language uses (zero/one/two/few/many/other), provides example numbers for each category, and classifies any test numbers you supply. Supports English, French, German, Spanish, Portuguese, Russian, Ukrainian, Polish, Czech, Arabic, Japanese, Chinese, and Korean.
detect_locale Detect the language and locale of a given text string. Returns the detected language code (BCP 47), language name, writing script, confidence score (0-1), and alternate language candidates.
format_locale Format numbers, currencies, dates, and relative times for any locale using the Intl APIs. Supports decimal/percent/unit number formatting, multi-display currency formatting, short/medium/long/full date styles, and relative time expressions. Provide one or more formatting requests in a single call.
Permissions 0
No permissions indexed yet.