read locale from a method