Basic implementation of the locale resolver.