Angular internationalization (i18n) and *ngFor

后端 未结 3 1951
清歌不尽
清歌不尽 2021-01-08 00:11

I have a simple generic component in Angular which receives a list of strings and creates a radio group for these strings:

@Component({
  sele         


        
3条回答
  •  别那么骄傲
    2021-01-08 00:45

    In Angular 9 you can use global $localize function like this:

    $localize`String to translate`
    

    Great article on this: https://blog.ninja-squad.com/2019/12/10/angular-localize/

提交回复
热议问题