China's consumer inflation accelerated to 1.8 percent in December, official data showed on Wednesday.