openmove / odh-mentor-otp

https://mobility.meran.eu
1 stars 3 forks source link

move in config.yml fallback language #61

Closed stefanocudini closed 3 years ago

stefanocudini commented 3 years ago

TODO @valerio-fornace

create new config entry for this parameter:

https://github.com/openmove/odh-mentor-otp/blob/development/journey/app/lib/i18n/index.js#L26

valerio-fornace commented 3 years ago

@stefanocudini i've just add two new parameters in config.yml under main language key:

i18n initialization now read these parameters for init configuration.

if defaultLanguage is not defined, i18n will use the browser language if fallbackLanguage is not defined, it wil set on english by default