Closed yunshang closed 7 years ago
locale
key here should contain only language code.
Translations themselves should be set on pickmeup.defaults.locales
object.
For your example (if Google Translate correctly identifies language):
pickmeup.defaults.locales['zh'] = {
days: ['日', '一', '二', '三', '四', '五', '六', '天'],
daysShort: ['日', '一', '二', '三', '四', '五', '六', '天'],
daysMin: ['日', '一', '二', '三', '四', '五', '六', '天'],
months: ['一月', ' 二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'],
};
pickmeup('.date_start', {
format: 'Y-m-d',
default_date: false,
mode: 'range',
locale: 'zh'
});
It was like you've used initially in older versions of PickMeUp, but now PickMeUp supports multiple languages.
thanks
This is my code
I get this error![ff](https://cloud.githubusercontent.com/assets/5956306/19617354/f7b3012c-9860-11e6-878e-c8ed043c97c2.png)