Angular 2 dictionary
<p>In Angular 1 my code looked like this:I have 2 dictionaries and functions</p>

<pre><code>var rus = {"hello" : "привет",
"text":"текст",
"home":"дом"};

var eng = {"hello":"hello",
"text":"text",
"home":"home"};
$scope.selectedLang = rus;

translate();

function translate() {
    $scope.hello = $scope.selectedLang["hello"];
    $scope.text = $scope.selectedLang["text"];
    $scope.home = $scope.selectedLang["home"];
}

$scope.switchLang = function(lang) {
    if(lang == "rus") {
        $scope.selectedLang = rus;
    } else {
        $scope.selectedLang = eng;
    }
    translate();
};
</code></pre>

<p>But now I need to make this in angular 2. How can I do this?</p>