Allow to get user locale from java components