(key)
| 1825 | var globalLocale; |
| 1826 | |
| 1827 | function normalizeLocale(key) { |
| 1828 | return key ? key.toLowerCase().replace('_', '-') : key; |
| 1829 | } |
| 1830 | |
| 1831 | // pick the locale from the array |
| 1832 | // try ['en-au', 'en-gb'] as 'en-au', 'en-gb', 'en', as in move through the list trying each |