On 30/04/13 15:08, Aitor Mendaza Ormaza wrote:
> Hi to everyone:
> I'm new to Firefox OS app development, and I come from Android development. I 
> was wondering if there is a way to localize text of applications in a similar 
> way as it is done in Android (one file for each language).
> I was looking on internet, but I only found this:
> https://developer.mozilla.org/en-US/docs/DOM/window.navigator.language
> 
> if ( window.navigator.language != "en" ) {       
>  doLangSelect(window.navigator.language); 
> }
> 
> And I see it is quite easy. My question is, how the doLangSelect should be 
> implemented? Is there an easy way in firefox OS apps? or a best practices?

Hi Aitor,

Firefox OS built-in applications are using this:
https://github.com/fabi1cazenave/webL10n

I would highly recommend you to use that library if you want to handle
l10n in your application context.

Cheers,
--
Mounir
_______________________________________________
dev-webapps mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-webapps

Reply via email to