get locale from context