Edit this page

culture

Sets or gets the current culture. Uses the passed culture name to select a culture from the culture scripts that you have included and then sets the current culture. If there is no corresponding culture then the method will try to find culture which is equal to the country part of the culture name. If no culture is found the default one is used.

The culture must be set before any Kendo UI widgets that rely on it, are initialized.

Example - include a culture-specific JavaScript file and set the culture

<script src="http://kendo.cdn.telerik.com/2013.2.716/js/cultures/kendo.culture.en-GB.min.js"></script>
<script>
  console.log(kendo.format("{0:c}", 99)); // outputs "$99.00" using the default en-US culture
  kendo.culture("en-GB"); // change the culture
  console.log(kendo.format("{0:c}", 99)); // outputs "£99.00"
</script>

Get the current culture

<script>
var culture = kendo.culture();
console.log(culture.name); // outputs "en-US"
</script>

Parameters

culture String

The culture to set.

Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy