trying to make `loadLocale` a bit more readable