fixed bug with getting translation in snippet parser