Added support for locale autodetection via f3 framework