@artale/pi-i18n
i18n/localization toolkit. Scan translations, find missing keys, validate formats, extract strings. Supports JSON, YAML, .po, .xliff, Android XML, iOS .strings.
Package details
Install @artale/pi-i18n from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:@artale/pi-i18n- Package
@artale/pi-i18n- Version
1.0.0- Published
- Mar 8, 2026
- Downloads
- 18/mo · 4/wk
- Author
- artale
- License
- MIT
- Types
- extension
- Size
- 22.1 KB
- Dependencies
- 0 dependencies · 0 peers
Pi manifest JSON
{
"commands": [
"i18n"
],
"tools": [
"i18n_scan",
"i18n_missing",
"i18n_validate"
]
}Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
README
@artale/pi-i18n
First i18n/Localization package in the pi ecosystem.
Scan translation files, find missing keys, validate formats, extract translatable strings from code, compare locales.
Install
npm install -g @artale/pi-i18n
Supported Formats
- JSON (nested and flat)
- YAML
- Java .properties
- Gettext .po/.pot
- XLIFF (.xliff/.xlf)
- Android strings.xml
- iOS .strings
Tools
- i18n_scan — Scan directory for i18n files, report coverage per locale
- i18n_missing — Find missing translation keys across locales
- i18n_validate — Validate file format, check for empty values and duplicates
Commands
/i18n scan <dir>— Scan for i18n files with coverage bars/i18n missing <dir>— List missing keys per locale/i18n validate <file>— Validate translation file/i18n extract <dir>— Extract t(), $t(), __() calls from code/i18n compare <a> <b>— Diff two locale files