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.
@@ -86,6 +86,7 @@ class DateEditor extends React.Component {
86
86
  lang,
87
87
  column
88
88
  } = this.props;
89
+ console.log('date editor 98', lang);
89
90
  let {
90
91
  newValue,
91
92
  isPopoverShow,
@@ -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) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dtable-ui-component",
3
- "version": "4.3.10-alpha1",
3
+ "version": "4.3.10-alpha2",
4
4
  "main": "./lib/index.js",
5
5
  "dependencies": {
6
6
  "@seafile/react-image-lightbox": "2.0.5",