using ham method for locale in views