added locales support