Help me in displaying the data as per the Language selected by User

Hi All,

Can anyone help me in displaying the data on page.
I have this data from webservice:
$scope.categories = [
{ id:1,
title: {
en: ‘table1’,
hi: ‘table2’
{ id:2,
title: {
en: ‘table3’,
hi: ‘table4’

i have displayed this data on the page. and language is selected is english, when I change the language the data should be the second language data from the above dictionary to be displayed.

Its quite urgent.

thanks in advance.