How to use MatPaginatorIntl?

前端 未结 9 1144
盖世英雄少女心
盖世英雄少女心 2020-12-02 17:59

I\'m using MatPaginator component and I\'m trying to figure out how to translate those labels (documentation isn\'t clear enough about this).

I\'ve found this articl

9条回答
  •  温柔的废话
    2020-12-02 18:55

    In order to refresh the label, you can fire a change event after the label change:

    translateLabels() {
        this.firstPageLabel = this.translate.instant('mat-paginator-intl.first_page');
        ...
        this.changes.next();
    }
    

提交回复
热议问题