Translate strings in ts files

I am using {{'hello' | translate}} in my templates.
Can I use translate with string sin ts files?

Of course. It’s all documented here.

Found it…

translate.get('HELLO', {value: 'world'}).subscribe((res: string) => {
    console.log(res);
    //=> 'hello world'
});