Add files via upload

This commit is contained in:
公明
2026-07-17 16:51:35 +08:00
committed by GitHub
parent 217f8f9648
commit 9f092388e1
13 changed files with 1913 additions and 255 deletions
+4 -1
View File
@@ -41,7 +41,10 @@ function buildApiSpecTagToKey() {
function translateApiDocTag(tag) {
if (!tag) return tag;
var key = apiSpecTagToKey[tag];
return key ? _t('apiDocs.tags.' + key) : tag;
if (!key) return tag;
var i18nKey = 'apiDocs.tags.' + key;
var translated = _t(i18nKey);
return translated === i18nKey ? tag : translated;
}
function translateApiDocSummaryFromOp(op) {
var key = op && op['x-i18n-summary'];