@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.
|
@@ -35386,19 +35386,20 @@ class readable_element_ReadableElement extends conditional_enable_element_Condit
|
|
|
35386
35386
|
let name = value.customStatus;
|
|
35387
35387
|
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);
|
|
35388
35388
|
const isChinese = language === 'zh-Hans' || language === 'zh';
|
|
35389
|
+
const isTraditionalChinese = language === 'zh-Hant' || language === 'zh-TW' || language === 'zh-tw';
|
|
35389
35390
|
if (!name) {
|
|
35390
35391
|
switch (value.state) {
|
|
35391
35392
|
case 1:
|
|
35392
|
-
name = isChinese ? '在线' : 'Online';
|
|
35393
|
+
name = isTraditionalChinese ? '線上' : (isChinese ? '在线' : 'Online');
|
|
35393
35394
|
break;
|
|
35394
35395
|
case 3:
|
|
35395
|
-
name = isChinese ? '离线' : 'Offline';
|
|
35396
|
+
name = isTraditionalChinese ? '離線' : (isChinese ? '离线' : 'Offline');
|
|
35396
35397
|
break;
|
|
35397
35398
|
case 4:
|
|
35398
|
-
name = isChinese ? '告警' : 'Alarming';
|
|
35399
|
+
name = isTraditionalChinese ? '告警' : (isChinese ? '告警' : 'Alarming');
|
|
35399
35400
|
break;
|
|
35400
35401
|
case 5:
|
|
35401
|
-
name = isChinese ? '未绑定' : 'Unbound';
|
|
35402
|
+
name = isTraditionalChinese ? '未綁定' : (isChinese ? '未绑定' : 'Unbound');
|
|
35402
35403
|
break;
|
|
35403
35404
|
default:
|
|
35404
35405
|
}
|