Bug 994078 - Port l10n.js compiler tests to apps/gallery

https://bugzilla.mozilla.org/show_bug.cgi?id=994078