Description
Weex page has no idea about current system language now, multiple language application cannot decide default language of the user.
Weex should provide locale module, contains information about system language, as same as navigator.language (referrer https://developer.mozilla.org/en-US/docs/Web/API/NavigatorLanguage/language).
var locale = weex.requireModule('locale'); // get preferred language of the user var language = locale.getLanguage() // an array of strings representing the user's preferred languages // referrer [https://developer.mozilla.org/en-US/docs/Web/API/NavigatorLanguage/languages] var languages = locale.getLanguages()
Example: http://dotwe.org/vue/fc5e91d6f1a809bab2f073af53f4dd94