localization may be a function or object