A quick update on the progress of the lightweight branch:

- I added full support for events:  fetcherror, parseerror, notfounderror
and resolveerror.  All events are emitted by the env to save memory. Events
of type resolveerror get two arguments: the error and the context where it
was caught.  There's a special type of event, '*' which is a catch-all for
all other types. I might remove it in the future, but it's been useful for
debugging for now.

- I fixed the parse, format and pseudo scripts in tools/.

- I fixed all lib unit tests in tests/lib (when run in mocha under node).

- I added a few tests for Env in tests/lib/env.

I also started to experiment with other builders than webpack.  Zibi found
esperanto, but grunt-esperanto is lacking.  There's gobble and grunt-gobble
which are capable of creating esperanto bundles.  I have a wip at
https://github.com/stasm/l20n.js/tree/gobble although it looks like some
post-processing might still be required.

I hadto work around querystring.unsecape for unicode unescapes and I think
I found an elegant solution: String.fromCharCode:


I also came across es6-module-transpiler and grunt-es6-module-transpiler.


On Fri, May 22, 2015 at 4:34 PM, Staś Małolepszy <[email protected]> wrote:

> I've added two missing pieces today:
>
> On Thu, May 21, 2015 at 4:33 PM, Staś Małolepszy <[email protected]> wrote:
>
>> There are still things that I haven't added yet:
>>
>>  - no pseudolocales (should be easy to add at this point),
>>
>
> Added in
> https://github.com/stasm/l20n.js/commit/d784569b8e0588c5cfc6ab3f7d9a80178f609a6e.
> I'm happy with how easy this was :)
>
>
>>  - no method to programmatically change language,
>>
>
> Added window.L20n.change in
> https://github.com/stasm/l20n.js/commit/0e0bea602508bb10a484dfce68fea28b4a82632e
> .
>
> -stas
>
>
_______________________________________________
tools-l10n mailing list
[email protected]
https://lists.mozilla.org/listinfo/tools-l10n

Reply via email to