added multiple locales support