Loads new locale
locale(locale);

locale | string or path or object, name of the locale or path to the locale file, or settings object with the locale

#### Description

The first parameter can be a string or a path to the file or an object. If it is a string (ex: ru-ru) it is the name of the locale. It will attempt to load file from the /locale folder. If you want to load locale file from some other folder, you need to provide full path to it. If it's an object than the settings object will be extended with properties of this locale object.
The method will perform synchronous load of the locale, so it will pause until locale is loaded.
You can call in in the following way: w2utils.locale('ru-ru'); // or w2utils.locale('/path/to/locale/ru-ru.json'); // or w2utils.locale({ dateFormat : "dd-mm-yyyy", dataType : 'RESTFULLJSON' dateStartYear : 1990 });