Enforces valid locales in translation classes