add basic support for locale resolving