Complete localization look up function

TODO: unit tests & documentation