Added validation of locale for translation class