@flexem/fc-gui 3.0.0-alpha.146 → 3.0.0-alpha.147

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.
@@ -84,19 +84,20 @@ export class ReadableElement extends ConditionalEnableElement {
84
84
  let name = value.customStatus;
85
85
  const language = ((_b = (_a = window.abp.localization) === null || _a === void 0 ? void 0 : _a.currentLanguage) === null || _b === void 0 ? void 0 : _b.name) || ((_d = (_c = this.localization.localizationService) === null || _c === void 0 ? void 0 : _c.translate) === null || _d === void 0 ? void 0 : _d.currentLang);
86
86
  const isChinese = language === 'zh-Hans' || language === 'zh';
87
+ const isTraditionalChinese = language === 'zh-Hant' || language === 'zh-TW' || language === 'zh-tw';
87
88
  if (!name) {
88
89
  switch (value.state) {
89
90
  case 1:
90
- name = isChinese ? '在线' : 'Online';
91
+ name = isTraditionalChinese ? '線上' : (isChinese ? '在线' : 'Online');
91
92
  break;
92
93
  case 3:
93
- name = isChinese ? '离线' : 'Offline';
94
+ name = isTraditionalChinese ? '離線' : (isChinese ? '离线' : 'Offline');
94
95
  break;
95
96
  case 4:
96
- name = isChinese ? '告警' : 'Alarming';
97
+ name = isTraditionalChinese ? '告警' : (isChinese ? '告警' : 'Alarming');
97
98
  break;
98
99
  case 5:
99
- name = isChinese ? '未绑定' : 'Unbound';
100
+ name = isTraditionalChinese ? '未綁定' : (isChinese ? '未绑定' : 'Unbound');
100
101
  break;
101
102
  default:
102
103
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "main": "bundles/fc-gui.umd.js",
3
- "version": "3.0.0-alpha.146",
3
+ "version": "3.0.0-alpha.147",
4
4
  "module": "public_api.js",
5
5
  "typings": "public_api.d.ts",
6
6
  "license": "UNLICENSED",