@turjuman/formats
v0.2.0
Published
Turjuman localization file-format adapters (JSON, YAML, .properties, ARB, CSV, Android XML, iOS .strings/.stringsdict) over a canonical ICU representation.
Maintainers
Readme
@turjuman/formats
Localization file-format adapters for Turjuman — open-source, self-hosted translation management.
Each adapter converts between an on-disk file and a canonical list of translation entries whose
value is always an ICU MessageFormat string (plurals included). Supported formats:
- JSON (flat and nested)
- YAML
- Java
.properties - ARB (Flutter)
- CSV
- Android
strings.xml(<plurals>) - iOS
.stringsand.stringsdict
import { getAdapter, listFormats } from "@turjuman/formats";
const adapter = getAdapter("json-nested");
const entries = adapter.parse(fileContents);
const out = adapter.serialize(entries);Plural handling and the shared domain model come from
@turjuman/schema. This package is
used by the turjuman CLI for
pull/push/build.
License
MIT
