Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Are there reasons to use XMB and XTB message formats over XLF or XLIFF in Angular's i18n?

I have not been able to tell if XMB/XTB and XLF/XLIFF are just different flavors with the same capabilities, or if there are good reasons to use one vs the other when doing translations using Angular's i18n. Is one format more dominant in translation software? Are there things about XMB/XTB that are better for Angular?

The Angular i18n documentation lists them all as options, and seems to default to XLF, but doesn't seem to explain much about any differences or advantages or disadvantages of the file formats.

like image 268
A.Krueger Avatar asked Apr 19 '18 20:04

A.Krueger


People also ask

What is i18n angular?

Angular Internationalizationlink Internationalization, sometimes referenced as i18n, is the process of designing and preparing your project for use in different locales around the world. Localization is the process of building versions of your project for different locales.

What is NGX translate?

What is ngx-translate? ngx-translate is the library for internationalization (i18n) and localization in Angular. It simplifies your Angular application to work for localization. It's easy to set up and use in an Angular application.

What is angular translate?

What? angular-translate is an AngularJS module that makes your life much easier when it comes to i18n and l10n including lazy loading and pluralization.


1 Answers

According to How to do localization in Google Closure XTB is Google's internal i18n format, that they use with Closure Compiler. I guess the reason it's in Angular is to support Google's internal apps and toolchain.

like image 122
Kamshak Avatar answered Oct 13 '22 02:10

Kamshak