Fix language detection in Products and ProductsAttributes