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.

// Dojo 1.7 (AMD)
require(["dojo/_base/kernel"], function(dojo){
   var currentLocale = dojo.locale;
});
// Dojo < 1.7
var currentLocale = dojo.locale;
Error in the documentation? Can’t find what you are looking for? Let us know!