Add function for locale