use API more similar to the existing one for localization