Skip to content

webL10n vs Gaia webL10n

Nick Desaulniers edited this page Oct 9, 2013 · 1 revision

The main difference between Gaia’s l10n.js library and the one in webL10n is that the latter is cross-browser — hence a slightly different API and a few fallbacks for IE<9. In other words:

  • you can switch to Gaia’s l10n.js library if you’re OK to change the API;
  • you can keep webL10n and just remove the whole “if (!window.JSON) {…}” block if you don’t care about IE6 or IE7;
  • you can keep webL10n and remove the whole “else if (window.attachEvent) {…}” block if you don’t care about IE<9.
Clone this wiki locally