This is from the doc:
translate.get('HELLO', {value: 'world'}).subscribe((res: string) => {
console.log(res);
//=> 'hello world'
});
How can I apply with the array like so?
setPayPal(): void {
this.translateService.get(['Client.Pay-With-PayPal', 'Client.Please-Click-And-Make-The-Payment',
]).subscribe(res => {
this.payPal = {
title: res['Client.Pay-With-PayPal'],
payPalUrl: environment.payPalUrl,
description: res['Client.Please-Click-And-Make-The-Payment']
};
});
}
I can get that value like so: value: environment.parcelDeliveryCost
gr.json
"Please-Click-And-Make-The-Payment":"Bitte anklicken und die Bezahlung von {{value}} vornehmen",
So my question here is how to apply it with the array?