move locales controller into namespace