search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

AngularJS locale property not working

Asked by Anonymous
8 years ago.

I'm defining locale property as the following

```
var localeTR = new DayPilot.Locale(
'tr-tr',
{
dayNames: 'Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi'.split('_'),
dayNamesShort: 'Pz_Pt_Sa_Ça_Pe_Cu_Ct'.split('_'),
monthNames: 'Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık_'.split('_'),
monthNamesShort: 'Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara'.split('_'),
timePattern: 'hh:mm tt',
datePattern: 'd MM yyyy',
dateTimePattern: 'd MM yyyy hh:mm tt',
timeFormat: 'Clock24Hours',
weekStarts: 1
}
);

DayPilot.Locale.register(localeTR);
```

And adding in the configuration

```
$scope.config = {
...
locale: 'tr-tr'
...
}
```

However, all the interface is still in English. I tried predefined locales but the result is the same.

Is it a bug?

Answer posted by Dan Letecky [DayPilot]
8 years ago.

I've tested it and it seems to work (even with your code).

Where exactly do you see English?

In the demo (http://javascript.daypilot.org/demo/lite/), changing the locale affects the day headers and it seems to work correctly.

This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.