MCPcopy Index your code
hub / github.com/csev/py4e / normalizeLocale

Function normalizeLocale

code/gmane/Chart.bundle.js:1827–1829  ·  view source on GitHub ↗
(key)

Source from the content-addressed store, hash-verified

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

Callers 1

chooseLocaleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected