I attempted to use an angular translation service to translate English words to Chinese using a key-value mapping approach, but unfortunately, I was unsuccessful. Does anyone have any suggestions?
Here is the JSON mapping:
"At most {{ number }} wrods":"最多輸入{{ number }}字"
And in TypeScript:
import { TranslateService } from '@ngx-translate/core';
...
this.translate = injector.get(TranslateService);
....
this.translate.instant(`At most ${50} wrods`);