made ajax call for posts to check the language