Implement and use the localization API.