wegue icon indicating copy to clipboard operation
wegue copied to clipboard

Consolidate Geocoder language options and i18n language detection.

Open fschmenger opened this issue 3 years ago • 0 comments

The language specific geocoder providerOptions should be derived from the active language as detected by the util/Locale.js module. Currently geocoder has an app-conf setting may look like the following and is redundant to the global lang definition:

"providerOptions": {
    "key": "",
    "lang": "nl-NL",
    "countrycodes": "nl",
    "limit": 5
  }

This topic is a follow up task to #205 and was discussed in #233. Quoted from #233:

This requires some sort of mapping between the supported languages and the geocoder language codes. Where do we want to put the mapping (e.g. configure in the 'lang' property or somewhere specific in 'wgu-geocoder'? I didnt study geocoder code closely enough to know the implications, so any ideas welcome here.

fschmenger avatar Sep 07 '21 14:09 fschmenger