added translations functionality