Angular XMB

Extension
.xmb
Import
yes
Export
yes

XMB format is a format for generating and storing the original translation, from this file translation files are generated format XTB.

The XMB format is an xml file with a list of key-value pairs that has no deeper structure. The translations are placed inside the <messagebundle> tag in the <msg> tag in which the id attribute describes the name of the term and the content is the translation.

Important

Angular's XMB translation generation generates xmb source language files, but uses xtb translation files (XML Translation Bundle: XTB).

Documentation

Official Angular i18n documentation
More on the XMB format

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE messagebundle [
  <!ELEMENT messagebundle (msg)*>
  <!ATTLIST messagebundle class CDATA #IMPLIED>
  <!ELEMENT msg (#PCDATA|ph|source)*>
  <!ATTLIST msg id CDATA #IMPLIED>
  <!ATTLIST msg seq CDATA #IMPLIED>
  <!ATTLIST msg name CDATA #IMPLIED>
  <!ATTLIST msg desc CDATA #IMPLIED>
  <!ATTLIST msg meaning CDATA #IMPLIED>
  <!ATTLIST msg obsolete (obsolete) #IMPLIED>
  <!ATTLIST msg xml:space (default|preserve) "default">
  <!ATTLIST msg is_hidden CDATA #IMPLIED>
  <!ELEMENT source (#PCDATA)>
  <!ELEMENT ph (#PCDATA|ex)*>
  <!ATTLIST ph name CDATA #REQUIRED>
  <!ELEMENT ex (#PCDATA)>
]>
<messagebundle>
   <msg id="addTerm" xml:space="default">Add translation</msg>
   <msg id="cancel" xml:space="default">Cancel</msg>
   <msg id="confirm" xml:space="default">Confirm</msg>
   <msg id="enterProjectName" xml:space="default">Enter project name</msg>
   <msg id="helloWorld" xml:space="default">Hello World</msg>
   <msg id="hi" xml:space="default">Hello</msg>
   <msg id="selectLanguage" xml:space="default">Choose language</msg>
   <msg id="settings" xml:space="default">Settings</msg>
</messagebundle>