(key)
| 2038 | } |
| 2039 | |
| 2040 | function normalizeLocale(key) { |
| 2041 | return key ? key.toLowerCase().replace('_', '-') : key; |
| 2042 | } |
| 2043 | |
| 2044 | // pick the locale from the array |
| 2045 | // try ['en-au', 'en-gb'] as 'en-au', 'en-gb', 'en', as in move through the list trying each |