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="https://kendo.cdn.telerik.com/2024.1.319/js/cultures/kendo.culture.en-GB.min.js"></script>
<script>
/* The result can be observed in the DevTools(F12) console of the browser. */
  console.log(kendo.format("{0:c}", 99)); // outputs "$99.00" using the default en-US culture
  kendo.culture("en-GB"); // change the culture
/* The result can be observed in the DevTools(F12) console of the browser. */
  console.log(kendo.format("{0:c}", 99)); // outputs "£99.00"
</script>

Get the current culture

<script>
var culture = kendo.culture();
/* The result can be observed in the DevTools(F12) console of the browser. */
console.log(culture.name); // outputs "en-US"
</script>

Parameters

culture String

The culture to set.

In this article