File description

The XTB format is a key-value pair list, with no deeper structure. It has a mechanism for named placeholders, with descriptions and examples.

Good to know

On export, any strings in your localization project which are in an invalid XML format will be ignored. This is to avoid any issues when using the file in your application.


The official Angular Documentation website:
More about the XTB file format:

Sample file

View Download
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE translationbundle [
<!ELEMENT translationbundle (translation)*>
<!ATTLIST translationbundle lang CDATA #REQUIRED>

<!ELEMENT translation (#PCDATA|ph)*>
<!ATTLIST translation id CDATA #REQUIRED>
<!ATTLIST translation desc CDATA #IMPLIED>
<!ATTLIST translation meaning CDATA #IMPLIED>
<!ATTLIST translation xml:space (default|preserve) "default">

<!ELEMENT ph (#PCDATA|ex)*>

<translationbundle lang="en">
  <translation id="0e6e97df36477138cbd9af3e75411ec4098e0e81" desc="Please don't change the name of the application">TODO List</translation>
  <translation id="88189fb664482334c972fc003fd5d324d222d92d">Enter your credentials below to login</translation>
  <translation id="b1cbc43844f73b4592073327b79a95530811267c">
                Login successful! <ph name="LINE_BREAK"><ex>&lt;br&gt;</ex></ph>
                Welcome back %s!
  <translation id="68a7ed22bb6c27f7419306d547d5e8636639b28d">Make sure you've entered the correct username and password</translation>
  <translation id="b87e81682959464211443afc3e23c506865d2eda">I forgot my password</translation>
  <translation id="a852ba13a01b09bc1ea89265c7ba968fdf233db3">
                Enter your address in the field below.
                A new password will be sent to your inbox.
  <translation id="ddc612479686c0abc415551b2859f6b6c881bf90">Sign up for free! No credit card required!</translation>
  <translation id="fa61d1080f3c82feddfce8ca2dd0ca77b2953c87">Thank you for signing up !
                Please check your email address to activate your account.</translation>
  <translation id="73b5c8855208a6cca7b8f3a5ad7b6856c2fbd222">We were unable to sign you up. <ph name="LINE_BREAK"><ex>&lt;br&gt;</ex></ph>Please correct the marked fields.</translation>
  <translation id="f9b310ac6e0921cca5f786ad8a5b82ca27565c36">Terms and conditions</translation>
  <translation id="8f59704f607ab82b32b585be7046fc22b1963d80" desc="User" meaning="form_label">Username</translation>
  <translation id="4f1556020f3961d8663dacf7989ccbe379993c82" meaning="form_label">Password</translation>
  <translation id="58a4068e4bdc40d645182638da6fde8dd2d72e72" desc="Info about users">Just one user online</translation>

See also: