param locale export function extractRegionFromLocale ( locale ) { const components = locale . split ( "-" ) ; if ( components . length >= 2 ) { return components [ 1 ] . toLowerCase ( ) ; } else { return components [ 0 ] . toLowerCase ( ) ; } }