Skip to Content | Skip to Navigation


dojo.locale

Project owner:?–
since:V?

A string containing the current locale as defined by Dojo.

Introduction

dojo.locale contains the locale for loading localized resources, specified according to RFC 3066. This string can be specified with the help of dojoConfig.locale.

Usage

A simple call of dojo.locale.

<script type="text/javascript">
  // Dojo 1.7 (AMD)
  require(["dojo/_base/kernel"], function(dojo){
     var currentLocale = dojo.locale;
  });
  // Dojo < 1.7
  var currentLocale = dojo.locale;
</script>