refactor locales