I am implementing a paginated table with Material, but I have the problem that it appears at the foot of the table -> Items per page: <- , referring to pagination. The idea is to change that text to Spanish ( see examples ), I tried changing the language of my application in the app.module like this:
import { LOCALE_ID } from '@angular/core';
import es from '@angular/common/locales/es';
import { registerLocaleData } from '@angular/common';
but without any effect. Similarly, within the html of the table implementation there is no tag with the text to change it
I managed to fix it by accessing the paginator instance like so:
In our component we import:
In the constructor we call it as follows and change it to the desired text:
To give you a clearer idea you can print in the console:
There you can review all the variables that you can access and modify.
I hope it helps you...