Edit getLocale in order to init locale if it isn't yet