Hello. I changed the texts of the interface in a custom class, however the component shows them in English some times.
In my app.module.ts:
import { OwlDateTimeModule, OwlNativeDateTimeModule, OWL_DATE_TIME_LOCALE, OwlDateTimeIntl } from 'ng-pick-datetime';
export class DefaultIntl extends OwlDateTimeIntl {
/** A label for the up second button (used by screen readers). */
upSecondLabel = 'Añadir un segundo';
/** A label for the down second button (used by screen readers). */
downSecondLabel = 'Disminuir un segundo';
/** A label for the up minute button (used by screen readers). */
upMinuteLabel = 'Añadir un minuto';
/** A label for the down minute button (used by screen readers). */
downMinuteLabel = 'Disminuir un minuto';
/** A label for the up hour button (used by screen readers). */
upHourLabel = 'Añadir una hora';
/** A label for the down hour button (used by screen readers). */
downHourLabel = 'Disminuir una hora';
/** A label for the previous month button (used by screen readers). */
prevMonthLabel = 'Mes anterior';
/** A label for the next month button (used by screen readers). */
nextMonthLabel = 'Mes siguiente';
/** A label for the previous year button (used by screen readers). */
prevYearLabel = 'Año anterior';
/** A label for the next year button (used by screen readers). */
nextYearLabel = 'Siguiente año';
/** A label for the previous multi-year button (used by screen readers). */
prevMultiYearLabel = 'Anteriores 21 años';
/** A label for the next multi-year button (used by screen readers). */
nextMultiYearLabel = 'Siguientes 21 años';
/** A label for the 'switch to month view' button (used by screen readers). */
switchToMonthViewLabel = 'Cambiar a vista de meses';
/** A label for the 'switch to year view' button (used by screen readers). */
switchToMultiYearViewLabel = 'Seleccionar mes y año';
/** A label for the cancel button */
cancelBtnLabel = 'Cancelar';
/** A label for the set button */
setBtnLabel = 'Aceptar';
/** A label for the range 'from' in picker info */
rangeFromLabel = 'Desde';
/** A label for the range 'to' in picker info */
rangeToLabel = 'Hasta';
/** A label for the hour12 button (AM) */
hour12AMLabel = 'AM';
/** A label for the hour12 button (PM) */
hour12PMLabel = 'PM';
}
Hello. I changed the texts of the interface in a custom class, however the component shows them in English some times. In my app.module.ts:
import { OwlDateTimeModule, OwlNativeDateTimeModule, OWL_DATE_TIME_LOCALE, OwlDateTimeIntl } from 'ng-pick-datetime';
In this component shows the text of the labels and buttons in Spanish:
And in this other component keeps showing the texts in English: