dtable-ui-component 4.3.10-alpha1 → 4.3.10-alpha2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/DateEditor/index.js
CHANGED
|
@@ -50,6 +50,7 @@ class PCDateEditorPopover extends React.Component {
|
|
|
50
50
|
lang
|
|
51
51
|
} = this.props;
|
|
52
52
|
let defaultValue = dayjs().clone();
|
|
53
|
+
console.log('pc date editor', 67, getLocale('Please_input'));
|
|
53
54
|
return /*#__PURE__*/React.createElement(Calendar, {
|
|
54
55
|
locale: initDateEditorLanguage(lang),
|
|
55
56
|
style: {
|
package/lib/lang/index.js
CHANGED
|
@@ -14,11 +14,13 @@ export function setLocale(args) {
|
|
|
14
14
|
let lang = typeof args === 'string' ? args : LANGUAGE;
|
|
15
15
|
LANGUAGE_MAP = langData[lang] || langData[LANGUAGE];
|
|
16
16
|
}
|
|
17
|
+
console.log(22, LANGUAGE_MAP);
|
|
17
18
|
export function getLocale(key, def) {
|
|
18
19
|
if (!key) return def;
|
|
19
20
|
if (!LANGUAGE_MAP[key]) {
|
|
20
21
|
return def || key;
|
|
21
22
|
}
|
|
23
|
+
console.log(LANGUAGE_MAP[key]);
|
|
22
24
|
return LANGUAGE_MAP[key];
|
|
23
25
|
}
|
|
24
26
|
export function substitute(str, obj) {
|