p-calendar i18n does not work (version 11)

UI Components for Angular
Post Reply
User avatar
acsiseci
Posts: 1
Joined: 27 Sep 2020, 12:03
Contact:

21 Feb 2021, 23:46

Hi
I added files to the directory (i18n >> tr.json,en.json) , but month names change , day names not changing .What do you think is the cause of the problem ?

en.json

Code: Select all

"primeng": {
    "dayNamesMin": ["Su","Mo","Tu","We","Th","Fr","Sa"],
    "monthNames": ["January","February","March","April","May","June","July","August","September","October","November","December"],
  }
  
tr.json

Code: Select all

"primeng": {
    "dayNamesMin": ["Pz","Pt","Sl","Çr","Pr","Cm","Ct"],
    "monthNames": ["Ocak", "Şubat", "Mart", "Nisan", "Mayıs", "Haziran", "Temmuz", "Ağustos", "Eylül", "Ekim", "Kasım", "Aralık"],
  }
  
Language selection button onChange Function

Code: Select all

changeLanguage(lang) {
        this.translate.use(lang.value);
        this.translate.get('primeng').subscribe(res => this.config.setTranslation(res));
    }
    

Post Reply

Return to “PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: Tropfen and 6 guests