We are trying to integrate localization into our HERE JS map display. This involves both the map labels and the UI options.
We are using these JS libraries:
<script src="https://js.api.here.com/v3/3.0/mapsjs-core.js" type="text/javascript" charset="utf-8"></script>
<script src="https://js.api.here.com/v3/3.0/mapsjs-service.js" type="text/javascript" charset="utf-8"></script>
<script src="https://js.api.here.com/v3/3.0/mapsjs-ui.js" type="text/javascript" charset="utf-8"></script>
<script src="https://js.api.here.com/v3/3.0/mapsjs-mapevents.js" type="text/javascript" charset="utf-8"></script>
On our website, we are using language codes following the ISO language codes: http://www.lingoes.net/en/translator/langcode.htm
However, when I try to pass in a standard code like "hi-IN" into the defaultLayers creation:
var ui = H.ui.UI.createDefault(hereMap, maptypes, "hi-IN"); // simplified, language code is actually passed in
Looking at the HERE API documentation: https://developer.here.com/api-explorer/maps-js/maps/map-multi-language-support it seems like I'm using the right kind of language code, but I get "Uncaught Error: Locale [hi-IN] is not supported."
. Am I misunderstanding something or using something incorrectly? Is there a list of all the Locales are supported?
If it's not supposed, does anyone have recommendations on how to create our own translations for the map labels like "normal" and "satellite"?
Currently "hi-IN" is not supported yet. About the map labels in UI. Please see below thread in SOF. The snipped sample code is about creating own UI control.
How do I get a Terrain Map in UI Controls HERE Maps v3.1
I hope this help.