SAP Knowledge Base Article - Preview

1919649 - SUP: navigator.language does not return the physical device language but always ‘en_us’

Symptom

navigator.language does not return the physical device language, but always ‘en_us’ in the HWC application, even if physical device language is changed to German.

Also tested:

  • deviceLanguage = navigator.userAgent.match(/[a-z]{2}-[a-z]{2}/);
  • navigator.userAgent

but none of them returned the correct device language.


Read more...

Environment

Sybase Unwired Platform & Mobile SDK 2.1.1 and earlier versions

Product

Sybase Unwired Platform 2.1

Keywords

navigator, language, device, HWC, application, locale, current, getCurrentLocale , KBA , MOB-SUP-SDK-ET , Mobile SDK Eclipse Tooling , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.