I18Nv2::langs2locales()
-- Transform languages to locales
Description
Transforms language codes like en-US and de-DE to locale codes like en_US and de_DE.
Parameter
- array $languages
array of language codes
Return value
Returns array transformed language codes as locale codes.
Note
This function should be called
statically.