1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

Angular Translation Service

Discussão em 'Angular' iniciado por apple, Junho 7, 2025.

  1. apple

    apple Guest

    I would like to translate wordings from eng to chinese using a key-value mapping approach with angular translation service but i failed. Any ideas??

    mapping json:

    "At most {{ number }} wrods":"最多輸入{{ number }}字":


    In typescript:

    import { TranslateService } from '@ngx-translate/core';
    ...
    this.translate = injector.get(TranslateService);
    ....
    this.translate.instant(`At most ${50} wrods`);

    Continue reading...

Compartilhe esta Página