call locale in class itself.