faced with difficulty which I can not solve = /
There are language settings by country:
"LANGUAGE": { "OPTIONS": ["en-US" , "rus-RU" , "zh-CN" , "fi-FI"], "FALLBACK": "en-US" start of code to get meaning:
var regionalCod = Facade.config.LANGUAGE.OPTIONS, change_regionalCod = regionalCod, // здесь пытался извлечь значения через .toString().split("-")[1] change_regionalCodLow = change_regionalCod, // здесь менял формат .toLowerCase() regionalCod = change_regionalCodLow; console.log(regionalCod); But you need to give out: us, ru, cn, fi
Ie took only the country code written in large letters after the dash, changed to a small format and returned
as: ["us", "ru", "cn", "fi"] or simply "us", "ru", "cn", "fi"
preferably with the ability to then pull out any of the values at will ...
