getAllLocaleCodes make it a function()