Crate intl_model

Source
Expand description

§The JSON message internationalization format

This module contains the code used to turn a dictionary of localized messages into a JSON-formatted file usable by Fuchsia’s localization lookup system.

The data model used for the JSON schema is defined below. No formal JSON schema has been specified yet. (But probably should be!)

Structs§

  • The data model for a set of internationalized messages. Every file has a locale ID that it applies to, as well as the number of total messages analyzed when this locale was produced

Type Aliases§

  • The message catalog. Maps unique IDs (as generated by the message_id::gen_ids) to individual message. The catalog does not know about the locale it is intended for, and additional metadata is needed to assert that. See Model for details on how it fits together.