.xml
) in accordance with Android strings and Android localization guidance.
If you’re fetching this format via the API, it will have an HTTP Content-Type
header of text/xml
.
Example:
?format=android
.
To fetch this via the CLI, specify format: android
in the config.yml
file.
Format details:
<string>
tags. Each tag is given a name
property with a value that corresponds to a given text item’s Developer ID; to comply with Android requirements, -
characters in the ID are replaced with _
. An additional ditto_api_id
field is also included with the unmodified Developer ID.<xliff:g>
tags. They’re given id
and example
properties with values that correspond to a given variable’s name and example values, respectively.<plurals>
tag generated for it, along with an <item>
for each plural form that is configured in Ditto (note: <item id="other">
will always be generated). Plural items also support variables via <xliff:g>
tags.