Flat XML files

See also

Flat XML

Changed in version 5.13: The tag and attribute names can now be customized using File format parameters.

Example of flat XML files:

<?xml version='1.0' encoding='UTF-8'?>
<root>
  <str key="hello_world">Hello World!</str>
  <str key="resource_key">Translated value.</str>
</root>
<?xml version='1.0' encoding='UTF-8'?>
<dictionary>
  <entry name="hello_world">Hello World!</entry>
  <entry name="resource_key">Translated value.</entry>
</dictionary>
Supported features

File extensions

.xml

Linguality

Monolingual

Supports plural

No

Supports descriptions

No

Supports explanation

No

Supports context

No

Supports location

No

Supports flags

Yes

API identifier

flatxml

Supports read-only strings

No

Weblate configuration

Typical Weblate Component configuration

File mask

locale/*.xml

Monolingual base language file

locale/en.xml

Template for new translations

Empty

File format

Flat XML file