Skip to content

How to use transloco in custom MatPaginatorIntl? #656

Answered by shaharkazaz
mariansimecek asked this question in Q&A
Discussion options

You must be logged in to vote

Try listening to the events stream:

translocoService.events$.pipe(
  filter(e => e.type === 'translationLoadSuccess')
).subscribe(() => this.setTranslation());

or you can try to selectTranslate with the keys you need:

translocoService.selectTranslate([
  'GENERAL.PAGINATOR.ITEMS_PER_PAGE_LABEL',
   ...
]).subscribe((translated) => ...)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@mariansimecek
Comment options

Answer selected by mariansimecek
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants