Update method to register locales