Added translation API to views