Created
April 2, 2021 11:22
-
-
Save ArturMiguel/5df286374e950a90e789122a397fb005 to your computer and use it in GitHub Desktop.
Primeng calendar translate
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { Component } from '@angular/core'; | |
| import { PrimeNGConfig } from 'primeng/api'; | |
| @Component({ | |
| selector: 'app-root', | |
| templateUrl: './app.component.html', | |
| styleUrls: ['./app.component.scss'] | |
| }) | |
| export class AppComponent { | |
| public title = 'app'; | |
| constructor( | |
| private primengConfig: PrimeNGConfig, | |
| ) {} | |
| async ngOnInit() { | |
| this.primengConfig.ripple = true; | |
| this.primengConfig.setTranslation({ | |
| dayNames: ['Domingo', 'Segunda', 'Terça', 'Quarta', 'Quinta', 'Sexta', 'Sábado'], | |
| dayNamesShort: ['Dom', 'Seg', 'Ter', 'Qua', 'Qui', 'Sex', 'Sab'], | |
| dayNamesMin: ['Dom', 'Seg', 'Ter', 'Qua', 'Qui', 'Sex', 'Sáb'], | |
| monthNames: ['Janeiro', 'Fevereiro', 'Março', 'Abril', 'Maio', 'Junho', 'Julho', | |
| 'Agosto', 'Setembro', 'Outubro', 'Novembro', 'Dezembro'], | |
| monthNamesShort: ['Jan', 'Fev', 'Mar', 'Abr', 'Mai', 'Jun', 'Jul', 'Ago', 'Set', 'Out', 'Nov', 'Dez'], | |
| today: 'Hoje', | |
| clear: 'Limpar' | |
| }); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment