<< gettext | I18n functions | poheader >> |
i18nHelpers('convert', potFile, jsonFile) |
i18nHelpers('merge', jsonFile1, jsonFile2) |
i18nHelpers('sort', jsonFileA, jsonFileB) |
String: Path to the source .po/.pot translation template file
String: Path to JSON translation file destination
String: Path to the source JSON translation file
String: Path to the destination JSON translation file
String: Path to the source JSON file to sort
String: Path to the sorted JSON file
i18nHelpers provides essential utility functions for managing internationalization files. The main functions include:
- 'convert': Converts a .po/.pot translation template file into JSON format for easier manipulation.
- 'merge': Merges two JSON translation files. The entries from jsonFile1
are added to jsonFile2
, and entries exclusive to jsonFile2
are removed.
- 'sort': Sorts and organizes entries in a JSON translation file. jsonFileA
and jsonFileB
may refer to the same file if in-place sorting is desired.
This utility is intended for internal use and may be updated over time.
Version | Description |
---|---|
1.10.0 | Initial version |
Allan CORNET