This is a migrated thread and some comments may be shown as answers.

kendo.culture();?

1 Answer 659 Views
Globalization
This is a migrated thread and some comments may be shown as answers.
Jeffrey Edgett
Top achievements
Rank 1
Jeffrey Edgett asked on 03 Jan 2012, 06:10 PM
How do you return the region code ('en-US', 'fr-CA', etc.) that may have been previously set by using kendo.culture(region_code);

1 Answer, 1 is accepted

Sort by
0
Georgi Krustev
Telerik team
answered on 04 Jan 2012, 04:55 PM
Hello Jeffrey,

 
kendo.culture() will return object with the current selected culture settings. This object has name property, which is the region code:

var regionCode = kendo.culture().name; //en-US by default

Kind regards,
Georgi Krustev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Globalization
Asked by
Jeffrey Edgett
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Share this question
or