Detects the locale of an application