add constructor for L10n.

Now both static api and object api supported.