@@ -209,7 +209,10 @@ |
||
| 209 | 209 | { |
| 210 | 210 | $bcp47 = data_get($locales, "{$locale}.regional"); |
| 211 | 211 | |
| 212 | - if(! $bcp47) return $locale; //locale is the "minimum" of BCP 47 |
|
| 212 | + if(! $bcp47) { |
|
| 213 | + return $locale; |
|
| 214 | + } |
|
| 215 | + //locale is the "minimum" of BCP 47 |
|
| 213 | 216 | |
| 214 | 217 | //regional value needs to replace underscore |
| 215 | 218 | return str_replace('_', '-', $bcp47); |