fix: fix bug in writeI18nFile

This commit is contained in:
Yang Luo
2026-04-12 22:23:57 +08:00
parent 8bb8d97ce5
commit 329100617f
12 changed files with 4 additions and 34 deletions
+3
View File
@@ -56,6 +56,9 @@ func readI18nFile(category string, language string) *I18nData {
func writeI18nFile(category string, language string, data *I18nData) {
s := util.StructToJsonFormatted(data)
s = strings.ReplaceAll(s, "\\u0026", "&")
// json.Marshal escapes < > for HTML safety; keep readable arrows like "->" in locale files.
s = strings.ReplaceAll(s, "\\u003c", "<")
s = strings.ReplaceAll(s, "\\u003e", ">")
s += "\n"
println(s)
-3
View File
@@ -1701,9 +1701,6 @@
"Success": "Erfolgreich",
"Unknown": "Unbekannt",
"Value": "Wert",
"Webhook Event Detail": "Webhook-Ereignisdetail",
"Webhook Event Logs": "Webhook-Ereignisprotokolle",
"Webhook Name": "Webhook-Name",
"Webhook event replay triggered": "Webhook-Ereigniswiederholung ausgelöst"
}
}
+1 -4
View File
@@ -688,7 +688,7 @@
"Physical": "Physical",
"Show all": "Show all",
"Virtual": "Virtual",
"You need to delete all subgroups first. You can view the subgroups in the left group tree of the [Organizations] -\u003e [Groups] page": "You need to delete all subgroups first. You can view the subgroups in the left group tree of the [Organizations] -\u003e [Groups] page"
"You need to delete all subgroups first. You can view the subgroups in the left group tree of the [Organizations] -> [Groups] page": "You need to delete all subgroups first. You can view the subgroups in the left group tree of the [Organizations] -> [Groups] page"
},
"home": {
"New users / 30 days": "New users / 30 days",
@@ -1701,9 +1701,6 @@
"Success": "Success",
"Unknown": "Unknown",
"Value": "Value",
"Webhook Event Detail": "Webhook event detail",
"Webhook Event Logs": "Webhook event logs",
"Webhook Name": "Webhook name",
"Webhook event replay triggered": "Webhook event replay triggered"
}
}
-3
View File
@@ -1701,9 +1701,6 @@
"Success": "Éxito",
"Unknown": "Desconocido",
"Value": "Valor",
"Webhook Event Detail": "Detalle del evento webhook",
"Webhook Event Logs": "Registros de eventos webhook",
"Webhook Name": "Nombre del webhook",
"Webhook event replay triggered": "Reproducción del evento webhook activada"
}
}
-3
View File
@@ -1701,9 +1701,6 @@
"Success": "Succès",
"Unknown": "Inconnu",
"Value": "Valeur",
"Webhook Event Detail": "Détail de l'événement webhook",
"Webhook Event Logs": "Journaux d'événements webhook",
"Webhook Name": "Nom du webhook",
"Webhook event replay triggered": "Relecture de l'événement webhook déclenchée"
}
}
-3
View File
@@ -1701,9 +1701,6 @@
"Success": "成功",
"Unknown": "不明",
"Value": "値",
"Webhook Event Detail": "Webhookイベント詳細",
"Webhook Event Logs": "Webhookイベントログ",
"Webhook Name": "Webhook名",
"Webhook event replay triggered": "Webhookイベント再生が開始されました"
}
}
-3
View File
@@ -1701,9 +1701,6 @@
"Success": "Powodzenie",
"Unknown": "Nieznany",
"Value": "Wartość",
"Webhook Event Detail": "Szczegóły zdarzenia webhook",
"Webhook Event Logs": "Dzienniki zdarzeń webhook",
"Webhook Name": "Nazwa webhook",
"Webhook event replay triggered": "Uruchomiono odtwarzanie zdarzenia webhook"
}
}
-3
View File
@@ -1701,9 +1701,6 @@
"Success": "Sucesso",
"Unknown": "Desconhecido",
"Value": "Valor",
"Webhook Event Detail": "Detalhe do evento webhook",
"Webhook Event Logs": "Logs de eventos webhook",
"Webhook Name": "Nome do webhook",
"Webhook event replay triggered": "Reprodução do evento webhook acionada"
}
}
-3
View File
@@ -1701,9 +1701,6 @@
"Success": "Başarılı",
"Unknown": "Bilinmiyor",
"Value": "Değer",
"Webhook Event Detail": "Webhook olay ayrıntısı",
"Webhook Event Logs": "Webhook olay günlükleri",
"Webhook Name": "Webhook adı",
"Webhook event replay triggered": "Webhook olayı yeniden oynatma tetiklendi"
}
}
-3
View File
@@ -1701,9 +1701,6 @@
"Success": "Успіх",
"Unknown": "Невідомо",
"Value": "Значення",
"Webhook Event Detail": "Деталі події webhook",
"Webhook Event Logs": "Журнали подій webhook",
"Webhook Name": "Назва webhook",
"Webhook event replay triggered": "Запущено повтор події webhook"
}
}
-3
View File
@@ -1701,9 +1701,6 @@
"Success": "Thành công",
"Unknown": "Không xác định",
"Value": "Giá trị",
"Webhook Event Detail": "Chi tiết sự kiện webhook",
"Webhook Event Logs": "Nhật ký sự kiện webhook",
"Webhook Name": "Tên webhook",
"Webhook event replay triggered": "Đã kích hoạt phát lại sự kiện webhook"
}
}
-3
View File
@@ -1701,9 +1701,6 @@
"Success": "成功",
"Unknown": "未知",
"Value": "值",
"Webhook Event Detail": "Webhook事件详情",
"Webhook Event Logs": "Webhook事件日志",
"Webhook Name": "Webhook名称",
"Webhook event replay triggered": "Webhook事件重放已触发"
}
}