Localisation tooling that is awesome and easy to use, using ICU formatting for plurals and other nightmarish aspects of localisation.
The tools are not yet on npm, so in the mean time, you can install from github:
npm i -g bbqsrc/i18n-eller
Call i18n-eller
with one of the following commands. (Use --help
for more information.)
Generates target output (ie iOS, Android, etc) from YAML source files. Automatically handles converting ICU entities to platform-supported entities.
Provides a type-safe singleton on each platform for accessing strings by key, generated from the YAML files. See examples/
for an example for each platform.
- objc: Objective C output
- swift: Swift output
- android: Android String XML output
Imports content from other formats into the YAML format used by i18n-eller
.
- xliff: XLIFF translation interchange format
Initialise localisation support for more annoying project formats.
- xcode: does all the work to create
Localizable.strings
stubs for chosen languages and adds to build system
Validates and formats the YAML files. Detects perfect duplicates, and supports using fuzzy matching to find strings that are similar and likely duplicates.
ISC license. See LICENSE.