Here i am doing the translation for 2 languages 'en' and 'de'
app.config(['$translateProvider', function($translateProvider) {
$translateProvider.translations('en', {
'name': 'Hello',
'FOO': 'This is a paragraph'
});
$translateProvider.translations('de', {
'name': 'Hallo',
'FOO': 'Dies ist ein Absatz'
});
$translateProvider.preferredLanguage('de');
}])
I am hardcoding the value for the key. How can we change the hello to hallo without hardcoding if we choose 'de' language?