got the switching between locales working