feat(nacos): global content replacement with persistent rollback

This commit is contained in:
xiaochouwei authored and GitHub committed 2026-09-22 16:12:18 +08:00
1 parent cf36425b0a
commit 7ade5d2b6e
26 files changed
+2706 -13

No files matched your search

@@ -0,0 +1,38 @@
import { describe, expect, it } from "vitest";
import en from "../locales/en";
import es from "../locales/es";
import itLocale from "../locales/it";
import ja from "../locales/ja";
import ko from "../locales/ko";
import ptBR from "../locales/pt-BR";
import zhCN from "../locales/zh-CN";
import zhTW from "../locales/zh-TW";
function entries(value: unknown, prefix = ""): Array<[string, string]> {
if (typeof value === "string") return [[prefix, value]];
if (value === null || typeof value !== "object" || Array.isArray(value)) return [];
return Object.entries(value as Record<string, unknown>).flatMap(([key, child]) => entries(child, prefix ? `${prefix}.${key}` : key));
}
function placeholders(message: string): string[] {
return [...message.matchAll(/\{[^{}]+\}/g)].map(([match]) => match).sort();
}
const source = new Map(entries(zhCN.nacos).filter(([key]) => key.startsWith("contentReplace") || key.startsWith("replaceHistory.")));
const english = new Map(entries(en.nacos));
const locales = { en, es, it: itLocale, ja, ko, "pt-BR": ptBR, "zh-TW": zhTW };
describe("Nacos global replacement translations", () => {
it("declares the new source messages", () => {
expect(source.size).toBe(51);
});
it.each(Object.entries(locales))("%s has localized messages with matching placeholders", (name, locale) => {
const translated = new Map(entries(locale.nacos));
for (const [key, text] of source) {
expect(translated.get(key), key).toBeTruthy();
expect(placeholders(translated.get(key) ?? ""), key).toEqual(placeholders(text));
if (name !== "en") expect(translated.get(key), `${name}:${key} must not fall back to English`).not.toBe(english.get(key));
}
});
});
+50
View File
@@ -10318,6 +10318,56 @@ export default {
clearSearchResults: "Clear search results",
searchResultsExported: "Search results exported",
searchResultsExportedTo: "Search results exported to {path}",
contentReplace: "Global replace",
contentReplaceTitle: "Replace content across Nacos configs",
contentReplaceDescription: "Preview an exact, case-sensitive replacement across every matching Data ID before publishing it.",
contentReplaceSearch: "Find value",
contentReplaceValue: "Replace with",
contentReplaceScope: "Scope",
contentReplaceAllGroups: "All groups",
contentReplaceAllDataIds: "All Data IDs",
contentReplaceAllNamespacesWarning: "This scans and may publish every matching config in every namespace on this connection. Review the full plan before applying.",
contentReplaceScanning: "Scanning {scanned} configs, {matched} matches found",
contentReplaceIncomplete: "The global search result is incomplete, so no replacement plan was created. Narrow the filters or retry.",
contentReplaceConfigCount: "{count} configs",
contentReplaceSelectAll: "Select all configs",
contentReplaceSelectConfig: "Select {dataId}",
contentReplaceSelectedCount: "{selected} of {total} configs selected",
contentReplaceOccurrenceCount: "{count} replacements",
contentReplaceNoMatches: "No published config contains this exact value.",
contentReplaceViewDiff: "View replacement diff",
contentReplacePreview: "Preview replacements",
contentReplaceApply: "Replace in {count} selected configs",
contentReplaceRollback: "Rollback replaced configs",
contentReplaceReport: "{replaced} replaced, {conflicts} conflicts, {failed} failed",
contentReplaceRollbackReport: "Rollback: {restored} restored, {conflicts} conflicts, {failed} failed",
contentReplaceStatus: {
replaced: "Replaced",
conflict: "Conflict",
failed: "Failed",
},
replaceHistory: {
replaceTab: "Replace",
historyTab: "History",
batchCount: "{count} batches",
empty: "No replacement batches recorded yet.",
refresh: "Refresh history",
details: "View batch details",
delete: "Delete record",
deleteTitle: "Delete batch history",
deleteConfirm: "Delete this local record and its rollback snapshots? Published Nacos configs will not change. You will no longer be able to roll back this batch here.",
rollbackTitle: "Roll back this replacement batch",
rollbackConfirm: "Publish the saved original content for confirmed replacements? Configs changed since replacement will be skipped. Already restored configs will not be published again.",
storageUnavailable: "Secure local history storage is unavailable. Use HTTPS or localhost with IndexedDB, Web Crypto and Web Locks enabled. Nothing further will be published.",
storageFailed: "Could not save or read batch history. Further publishing has stopped. Check local storage space and review history before retrying; uncertain items may require checking Nacos config history.",
targetMismatch: "This connection now points to a different Nacos server, or no longer exists. Preview again; historical rollback is blocked to protect the other server.",
busy: "Another tab is executing an operation on this connection. Retry after it finishes.",
uncertain: "Uncertain",
notExecuted: "Not executed",
interrupted: "Some writes were interrupted before their results could be saved. Uncertain items are excluded from automatic rollback. Check their individual Nacos config history.",
state: { applying: "Unfinished replacement", completed: "Replacement completed", rollingBack: "Unfinished rollback", rollbackCompleted: "Rollback processed" },
rollbackStatus: { restored: "Restored", conflict: "Rollback conflict", failed: "Rollback failed" },
},
batchExport: "Batch export",
batchImport: "Batch import",
copyToNamespace: "Config sync",
+50
View File
@@ -8394,6 +8394,56 @@ export default withEnglishFallback({
clearSearchResults: "Borrar resultados",
searchResultsExported: "Resultados de búsqueda exportados",
searchResultsExportedTo: "Resultados de búsqueda exportados a {path}",
contentReplace: "Reemplazo global",
contentReplaceTitle: "Reemplazar contenido en configuraciones Nacos",
contentReplaceDescription: "Previsualice el reemplazo exacto, que distingue mayúsculas y minúsculas, en todos los Data ID coincidentes antes de publicar.",
contentReplaceSearch: "Valor a buscar",
contentReplaceValue: "Reemplazar por",
contentReplaceScope: "Ámbito",
contentReplaceAllGroups: "Todos los Group",
contentReplaceAllDataIds: "Todos los Data ID",
contentReplaceAllNamespacesWarning: "Se analizarán y podrían publicarse todas las configuraciones coincidentes de todos los espacios de nombres de esta conexión. Revise la lista completa antes de aplicar los cambios.",
contentReplaceScanning: "Configuraciones analizadas: {scanned}; coincidencias encontradas: {matched}",
contentReplaceIncomplete: "La búsqueda global está incompleta, por lo que no se creó un plan de reemplazo. Reduzca los filtros o inténtelo de nuevo.",
contentReplaceConfigCount: "{count} configuraciones",
contentReplaceSelectAll: "Seleccionar todas las configuraciones",
contentReplaceSelectConfig: "Seleccionar {dataId}",
contentReplaceSelectedCount: "{selected} de {total} configuraciones seleccionadas",
contentReplaceOccurrenceCount: "{count} reemplazos",
contentReplaceNoMatches: "Ninguna configuración publicada contiene este valor exacto.",
contentReplaceViewDiff: "Ver diferencias del reemplazo",
contentReplacePreview: "Previsualizar reemplazos",
contentReplaceApply: "Reemplazar en {count} configuraciones seleccionadas",
contentReplaceRollback: "Revertir configuraciones reemplazadas",
contentReplaceReport: "Reemplazadas: {replaced}; conflictos: {conflicts}; fallidas: {failed}",
contentReplaceRollbackReport: "Reversión: {restored} restauradas; {conflicts} conflictos; {failed} fallidas",
contentReplaceStatus: {
replaced: "Reemplazada",
conflict: "Conflicto",
failed: "Fallida",
},
replaceHistory: {
replaceTab: "Reemplazar",
historyTab: "Historial",
batchCount: "{count} lotes",
empty: "Todavía no hay lotes de reemplazo registrados.",
refresh: "Actualizar historial",
details: "Ver detalles del lote",
delete: "Eliminar registro",
deleteTitle: "Eliminar historial del lote",
deleteConfirm: "¿Eliminar este registro local y sus copias para reversión? Las configuraciones publicadas en Nacos no cambiarán, pero ya no podrá revertir este lote desde aquí.",
rollbackTitle: "Revertir este lote de reemplazo",
rollbackConfirm: "¿Publicar el contenido original guardado de los reemplazos confirmados? Se omitirán las configuraciones modificadas después del reemplazo y no se volverán a publicar las ya restauradas.",
storageUnavailable: "No se puede usar el almacenamiento local seguro del historial. Use HTTPS o localhost con IndexedDB, Web Crypto y Web Locks habilitados. No se publicará nada más.",
storageFailed: "No se pudo guardar o leer el historial del lote. Se detuvo la publicación. Compruebe el espacio de almacenamiento local y revise el historial antes de reintentar; los elementos con estado incierto pueden requerir una revisión del historial de Nacos.",
targetMismatch: "Esta conexión apunta a otro servidor Nacos o ya no existe. Previsualice de nuevo; se bloqueó la reversión histórica para proteger el otro servidor.",
busy: "Otra pestaña está operando en esta conexión. Inténtelo de nuevo cuando termine.",
uncertain: "Estado incierto",
notExecuted: "No ejecutado",
interrupted: "Algunas escrituras se interrumpieron antes de guardar sus resultados. Los elementos con estado incierto no se revertirán automáticamente. Revise su historial individual en Nacos.",
state: { applying: "Reemplazo incompleto", completed: "Reemplazo completado", rollingBack: "Reversión incompleta", rollbackCompleted: "Reversión procesada" },
rollbackStatus: { restored: "Restaurada", conflict: "Conflicto de reversión", failed: "Reversión fallida" },
},
batchExport: "Exportación por lotes",
batchImport: "Importación por lotes",
copyToNamespace: "Sincronizar configuraciones",
+50
View File
@@ -8394,6 +8394,56 @@ export default withEnglishFallback({
clearSearchResults: "Cancella risultati",
searchResultsExported: "Risultati della ricerca esportati",
searchResultsExportedTo: "Risultati della ricerca esportati in {path}",
contentReplace: "Sostituzione globale",
contentReplaceTitle: "Sostituisci il contenuto delle configurazioni Nacos",
contentReplaceDescription: "Visualizza in anteprima una sostituzione esatta, che distingue maiuscole e minuscole, in tutti i Data ID corrispondenti prima della pubblicazione.",
contentReplaceSearch: "Valore da cercare",
contentReplaceValue: "Sostituisci con",
contentReplaceScope: "Ambito",
contentReplaceAllGroups: "Tutti i Group",
contentReplaceAllDataIds: "Tutti i Data ID",
contentReplaceAllNamespacesWarning: "Verranno analizzate e potrebbero essere pubblicate tutte le configurazioni corrispondenti in ogni namespace di questa connessione. Controlla l'elenco completo prima di applicare le modifiche.",
contentReplaceScanning: "Configurazioni analizzate: {scanned}; corrispondenze trovate: {matched}",
contentReplaceIncomplete: "La ricerca globale è incompleta, quindi non è stato creato un piano di sostituzione. Restringi i filtri o riprova.",
contentReplaceConfigCount: "{count} configurazioni",
contentReplaceSelectAll: "Seleziona tutte le configurazioni",
contentReplaceSelectConfig: "Seleziona {dataId}",
contentReplaceSelectedCount: "{selected} configurazioni su {total} selezionate",
contentReplaceOccurrenceCount: "{count} sostituzioni",
contentReplaceNoMatches: "Nessuna configurazione pubblicata contiene questo valore esatto.",
contentReplaceViewDiff: "Visualizza le differenze della sostituzione",
contentReplacePreview: "Anteprima delle sostituzioni",
contentReplaceApply: "Sostituisci in {count} configurazioni selezionate",
contentReplaceRollback: "Ripristina le configurazioni sostituite",
contentReplaceReport: "Sostituite: {replaced}; conflitti: {conflicts}; non riuscite: {failed}",
contentReplaceRollbackReport: "Ripristino: {restored} ripristinate; {conflicts} conflitti; {failed} non riuscite",
contentReplaceStatus: {
replaced: "Sostituita",
conflict: "Conflitto",
failed: "Non riuscita",
},
replaceHistory: {
replaceTab: "Sostituzione",
historyTab: "Cronologia",
batchCount: "{count} batch",
empty: "Nessun batch di sostituzione registrato.",
refresh: "Aggiorna cronologia",
details: "Visualizza dettagli del batch",
delete: "Elimina record",
deleteTitle: "Elimina cronologia del batch",
deleteConfirm: "Eliminare questo record locale e le relative istantanee per il ripristino? Le configurazioni Nacos pubblicate non verranno modificate, ma non sarà più possibile ripristinare questo batch da qui.",
rollbackTitle: "Ripristina questo batch di sostituzione",
rollbackConfirm: "Pubblicare il contenuto originale salvato per le sostituzioni confermate? Le configurazioni modificate dopo la sostituzione saranno ignorate e quelle già ripristinate non verranno pubblicate di nuovo.",
storageUnavailable: "Archiviazione locale sicura della cronologia non disponibile. Usa HTTPS o localhost con IndexedDB, Web Crypto e Web Locks abilitati. Non verrà pubblicato altro.",
storageFailed: "Impossibile salvare o leggere la cronologia del batch. Le pubblicazioni successive sono state interrotte. Controlla lo spazio locale e consulta la cronologia prima di riprovare; per gli elementi con stato incerto verifica la cronologia delle singole configurazioni Nacos.",
targetMismatch: "Questa connessione punta a un altro server Nacos o non esiste più. Ripeti l'anteprima; il ripristino dalla cronologia è bloccato per proteggere l'altro server.",
busy: "Un'altra scheda sta eseguendo un'operazione su questa connessione. Riprova al termine.",
uncertain: "Stato incerto",
notExecuted: "Non eseguita",
interrupted: "Alcune scritture si sono interrotte prima che i risultati fossero salvati. Gli elementi con stato incerto sono esclusi dal ripristino automatico. Controlla la cronologia delle singole configurazioni Nacos.",
state: { applying: "Sostituzione incompleta", completed: "Sostituzione completata", rollingBack: "Ripristino incompleto", rollbackCompleted: "Ripristino elaborato" },
rollbackStatus: { restored: "Ripristinata", conflict: "Conflitto di ripristino", failed: "Ripristino non riuscito" },
},
batchExport: "Esportazione in blocco",
batchImport: "Importazione in blocco",
copyToNamespace: "Sincronizza configurazioni",
+50
View File
@@ -8432,6 +8432,56 @@ export default withEnglishFallback({
clearSearchResults: "検索結果をクリア",
searchResultsExported: "検索結果をエクスポートしました",
searchResultsExportedTo: "検索結果を {path} にエクスポートしました",
contentReplace: "全体置換",
contentReplaceTitle: "Nacos 設定内容を一括置換",
contentReplaceDescription: "公開前に、一致するすべての Data ID に対する大文字と小文字を区別する完全一致の置換をプレビューします。",
contentReplaceSearch: "検索する値",
contentReplaceValue: "置換後の値",
contentReplaceScope: "対象範囲",
contentReplaceAllGroups: "すべての Group",
contentReplaceAllDataIds: "すべての Data ID",
contentReplaceAllNamespacesWarning: "この接続のすべての名前空間で一致する設定を走査し、公開する可能性があります。適用前に置換対象の一覧を確認してください。",
contentReplaceScanning: "{scanned} 件の設定を走査済み、{matched} 件の一致を検出",
contentReplaceIncomplete: "全体検索が完了していないため、置換計画を作成できませんでした。絞り込み条件を狭めるか、再試行してください。",
contentReplaceConfigCount: "{count} 件の設定",
contentReplaceSelectAll: "すべての設定を選択",
contentReplaceSelectConfig: "{dataId} を選択",
contentReplaceSelectedCount: "{total} 件中 {selected} 件の設定を選択",
contentReplaceOccurrenceCount: "{count} 箇所の置換",
contentReplaceNoMatches: "公開済みの設定に、この値と完全に一致する内容はありません。",
contentReplaceViewDiff: "置換差分を表示",
contentReplacePreview: "置換をプレビュー",
contentReplaceApply: "選択した {count} 件の設定を置換",
contentReplaceRollback: "置換済み設定を元に戻す",
contentReplaceReport: "置換成功: {replaced} 件、競合: {conflicts} 件、失敗: {failed} 件",
contentReplaceRollbackReport: "復元結果: 復元 {restored} 件、競合 {conflicts} 件、失敗 {failed} 件",
contentReplaceStatus: {
replaced: "置換済み",
conflict: "競合",
failed: "失敗",
},
replaceHistory: {
replaceTab: "置換",
historyTab: "履歴",
batchCount: "{count} 件のバッチ",
empty: "置換バッチの履歴はありません。",
refresh: "履歴を更新",
details: "バッチの詳細を表示",
delete: "記録を削除",
deleteTitle: "バッチ履歴を削除",
deleteConfirm: "この端末内の記録と復元用スナップショットを削除しますか?公開済みの Nacos 設定は変更されませんが、このバッチをここから元に戻すことはできなくなります。",
rollbackTitle: "この置換バッチを元に戻す",
rollbackConfirm: "置換が確認された設定について、保存した元の内容を公開しますか?置換後に変更された設定はスキップされ、復元済みの設定は再公開されません。",
storageUnavailable: "安全なローカル履歴ストレージを使用できません。HTTPS または localhost を使用し、IndexedDB、Web Crypto、Web Locks を有効にしてください。これ以上公開しません。",
storageFailed: "バッチ履歴の保存または読み込みに失敗したため、以降の公開を停止しました。ローカルの空き容量を確認し、再試行前に履歴を確認してください。状態が不明な項目は Nacos の個別設定履歴で確認してください。",
targetMismatch: "この接続は別の Nacos サーバーを指しているか、存在しません。再度プレビューしてください。別のサーバーを保護するため、履歴からの復元を禁止しました。",
busy: "別のタブがこの接続を操作中です。完了後に再試行してください。",
uncertain: "状態不明",
notExecuted: "未実行",
interrupted: "一部の書き込みは結果の保存前に中断されました。状態が不明な項目は自動復元されません。Nacos の個別設定履歴で確認してください。",
state: { applying: "置換未完了", completed: "置換完了", rollingBack: "復元未完了", rollbackCompleted: "復元処理済み" },
rollbackStatus: { restored: "復元済み", conflict: "復元時の競合", failed: "復元失敗" },
},
batchExport: "一括エクスポート",
batchImport: "一括インポート",
copyToNamespace: "設定同期",
+50
View File
@@ -9253,6 +9253,56 @@ export default withEnglishFallback({
clearSearchResults: "검색 결과 지우기",
searchResultsExported: "검색 결과를 내보냈습니다",
searchResultsExportedTo: "검색 결과를 {path}로 내보냈습니다",
contentReplace: "전체 바꾸기",
contentReplaceTitle: "Nacos 구성 내용 일괄 바꾸기",
contentReplaceDescription: "게시 전에 일치하는 모든 Data ID에서 대소문자를 구분하는 정확한 값 바꾸기를 미리 확인합니다.",
contentReplaceSearch: "찾을 값",
contentReplaceValue: "바꿀 값",
contentReplaceScope: "범위",
contentReplaceAllGroups: "모든 Group",
contentReplaceAllDataIds: "모든 Data ID",
contentReplaceAllNamespacesWarning: "이 연결의 모든 네임스페이스에서 일치하는 구성을 검색하고 게시할 수 있습니다. 적용하기 전에 전체 바꾸기 목록을 확인하세요.",
contentReplaceScanning: "구성 {scanned}개 검색, 일치 항목 {matched}개 발견",
contentReplaceIncomplete: "전체 검색이 완료되지 않아 바꾸기 계획을 만들지 않았습니다. 필터 범위를 좁히거나 다시 시도하세요.",
contentReplaceConfigCount: "구성 {count}개",
contentReplaceSelectAll: "모든 구성 선택",
contentReplaceSelectConfig: "{dataId} 선택",
contentReplaceSelectedCount: "구성 {total}개 중 {selected}개 선택",
contentReplaceOccurrenceCount: "바꾸기 {count}건",
contentReplaceNoMatches: "게시된 구성에서 이 값과 정확히 일치하는 내용을 찾지 못했습니다.",
contentReplaceViewDiff: "바꾸기 차이 보기",
contentReplacePreview: "바꾸기 미리 보기",
contentReplaceApply: "선택한 구성 {count}개 바꾸기",
contentReplaceRollback: "바꾼 구성 되돌리기",
contentReplaceReport: "바꾸기 성공 {replaced}개, 충돌 {conflicts}개, 실패 {failed}개",
contentReplaceRollbackReport: "되돌리기 결과: 복원 {restored}개, 충돌 {conflicts}개, 실패 {failed}개",
contentReplaceStatus: {
replaced: "바뀜",
conflict: "충돌",
failed: "실패",
},
replaceHistory: {
replaceTab: "바꾸기",
historyTab: "기록",
batchCount: "배치 {count}개",
empty: "저장된 바꾸기 배치 기록이 없습니다.",
refresh: "기록 새로 고침",
details: "배치 상세 정보 보기",
delete: "기록 삭제",
deleteTitle: "배치 기록 삭제",
deleteConfirm: "이 로컬 기록과 되돌리기 스냅샷을 삭제할까요? 게시된 Nacos 구성은 변경되지 않지만 이 배치를 여기에서 다시 되돌릴 수 없게 됩니다.",
rollbackTitle: "이 바꾸기 배치 되돌리기",
rollbackConfirm: "확인된 바꾸기 항목의 저장된 원본 내용을 게시할까요? 바꾼 뒤 수정된 구성은 건너뛰고 이미 복원된 구성은 다시 게시하지 않습니다.",
storageUnavailable: "안전한 로컬 기록 저장소를 사용할 수 없습니다. HTTPS 또는 localhost를 사용하고 IndexedDB, Web Crypto, Web Locks를 활성화하세요. 더 이상 게시하지 않습니다.",
storageFailed: "배치 기록을 저장하거나 읽지 못해 게시를 중단했습니다. 로컬 저장 공간을 확인하고 다시 시도하기 전에 기록을 살펴보세요. 상태가 불확실한 항목은 Nacos 개별 구성 기록에서 확인해야 합니다.",
targetMismatch: "이 연결이 다른 Nacos 서버를 가리키거나 더 이상 존재하지 않습니다. 다시 미리 확인하세요. 다른 서버를 보호하기 위해 기록에서 되돌리기를 차단했습니다.",
busy: "다른 탭에서 이 연결을 작업 중입니다. 완료된 후 다시 시도하세요.",
uncertain: "상태 불확실",
notExecuted: "실행되지 않음",
interrupted: "일부 쓰기 작업은 결과 저장 전에 중단되었습니다. 상태가 불확실한 항목은 자동으로 되돌리지 않습니다. Nacos의 개별 구성 기록을 확인하세요.",
state: { applying: "바꾸기 미완료", completed: "바꾸기 완료", rollingBack: "되돌리기 미완료", rollbackCompleted: "되돌리기 처리 완료" },
rollbackStatus: { restored: "복원됨", conflict: "되돌리기 충돌", failed: "되돌리기 실패" },
},
batchExport: "일괄 내보내기",
batchImport: "일괄 가져오기",
copyToNamespace: "구성 동기화",
+50
View File
@@ -8395,6 +8395,56 @@ export default withEnglishFallback({
clearSearchResults: "Limpar resultados",
searchResultsExported: "Resultados da pesquisa exportados",
searchResultsExportedTo: "Resultados da pesquisa exportados para {path}",
contentReplace: "Substituição global",
contentReplaceTitle: "Substituir conteúdo nas configurações Nacos",
contentReplaceDescription: "Visualize a substituição exata, que diferencia maiúsculas de minúsculas, em todos os Data IDs correspondentes antes de publicar.",
contentReplaceSearch: "Valor a buscar",
contentReplaceValue: "Substituir por",
contentReplaceScope: "Escopo",
contentReplaceAllGroups: "Todos os Group",
contentReplaceAllDataIds: "Todos os Data IDs",
contentReplaceAllNamespacesWarning: "Todas as configurações correspondentes em todos os namespaces desta conexão serão verificadas e poderão ser publicadas. Revise a lista completa antes de aplicar.",
contentReplaceScanning: "Configurações verificadas: {scanned}; correspondências encontradas: {matched}",
contentReplaceIncomplete: "A busca global está incompleta, portanto nenhum plano de substituição foi criado. Restrinja os filtros ou tente novamente.",
contentReplaceConfigCount: "{count} configurações",
contentReplaceSelectAll: "Selecionar todas as configurações",
contentReplaceSelectConfig: "Selecionar {dataId}",
contentReplaceSelectedCount: "{selected} de {total} configurações selecionadas",
contentReplaceOccurrenceCount: "{count} substituições",
contentReplaceNoMatches: "Nenhuma configuração publicada contém exatamente este valor.",
contentReplaceViewDiff: "Ver diferenças da substituição",
contentReplacePreview: "Visualizar substituições",
contentReplaceApply: "Substituir em {count} configurações selecionadas",
contentReplaceRollback: "Reverter configurações substituídas",
contentReplaceReport: "Substituídas: {replaced}; conflitos: {conflicts}; falhas: {failed}",
contentReplaceRollbackReport: "Reversão: {restored} restauradas; {conflicts} conflitos; {failed} falhas",
contentReplaceStatus: {
replaced: "Substituída",
conflict: "Conflito",
failed: "Falha",
},
replaceHistory: {
replaceTab: "Substituir",
historyTab: "Histórico",
batchCount: "{count} lotes",
empty: "Nenhum lote de substituição registrado.",
refresh: "Atualizar histórico",
details: "Ver detalhes do lote",
delete: "Excluir registro",
deleteTitle: "Excluir histórico do lote",
deleteConfirm: "Excluir este registro local e os snapshots de reversão? As configurações Nacos publicadas não serão alteradas, mas não será mais possível reverter este lote aqui.",
rollbackTitle: "Reverter este lote de substituição",
rollbackConfirm: "Publicar o conteúdo original salvo das substituições confirmadas? Configurações modificadas após a substituição serão ignoradas, e as já restauradas não serão publicadas novamente.",
storageUnavailable: "O armazenamento local seguro do histórico não está disponível. Use HTTPS ou localhost com IndexedDB, Web Crypto e Web Locks habilitados. Nenhuma outra configuração será publicada.",
storageFailed: "Não foi possível salvar ou ler o histórico do lote. As próximas publicações foram interrompidas. Verifique o espaço de armazenamento local e consulte o histórico antes de tentar novamente; itens com estado incerto podem exigir a consulta do histórico individual no Nacos.",
targetMismatch: "Esta conexão aponta para outro servidor Nacos ou não existe mais. Visualize novamente; a reversão pelo histórico foi bloqueada para proteger o outro servidor.",
busy: "Outra aba está operando nesta conexão. Tente novamente após a conclusão.",
uncertain: "Estado incerto",
notExecuted: "Não executada",
interrupted: "Algumas gravações foram interrompidas antes de salvar os resultados. Itens com estado incerto não serão revertidos automaticamente. Consulte o histórico individual das configurações no Nacos.",
state: { applying: "Substituição incompleta", completed: "Substituição concluída", rollingBack: "Reversão incompleta", rollbackCompleted: "Reversão processada" },
rollbackStatus: { restored: "Restaurada", conflict: "Conflito na reversão", failed: "Falha na reversão" },
},
batchExport: "Exportação em lote",
batchImport: "Importação em lote",
copyToNamespace: "Sincronizar configurações",
+50
View File
@@ -10285,6 +10285,56 @@ export default withEnglishFallback({
clearSearchResults: "清除搜索结果",
searchResultsExported: "搜索结果已导出",
searchResultsExportedTo: "搜索结果已导出到 {path}",
contentReplace: "全局替换",
contentReplaceTitle: "批量替换 Nacos 配置内容",
contentReplaceDescription: "先预览所有 Data ID 中大小写敏感的精确替换,确认后再批量发布。",
contentReplaceSearch: "查找值",
contentReplaceValue: "替换为",
contentReplaceScope: "范围",
contentReplaceAllGroups: "全部 Group",
contentReplaceAllDataIds: "全部 Data ID",
contentReplaceAllNamespacesWarning: "将扫描并可能发布此连接全部命名空间内的所有匹配配置。执行前请检查完整替换清单。",
contentReplaceScanning: "已扫描 {scanned} 个配置,发现 {matched} 个匹配项",
contentReplaceIncomplete: "全局搜索结果不完整,因此未生成替换计划。请缩小筛选范围或重试。",
contentReplaceConfigCount: "{count} 个配置",
contentReplaceSelectAll: "选择全部配置",
contentReplaceSelectConfig: "选择 {dataId}",
contentReplaceSelectedCount: "已选择 {selected} / {total} 个配置",
contentReplaceOccurrenceCount: "{count} 处替换",
contentReplaceNoMatches: "已发布配置中没有找到这个精确值。",
contentReplaceViewDiff: "查看替换差异",
contentReplacePreview: "预览替换",
contentReplaceApply: "替换选中的 {count} 个配置",
contentReplaceRollback: "回滚已替换配置",
contentReplaceReport: "成功替换 {replaced} 个,冲突 {conflicts} 个,失败 {failed} 个",
contentReplaceRollbackReport: "回滚结果:已恢复 {restored} 个,冲突 {conflicts} 个,失败 {failed} 个",
contentReplaceStatus: {
replaced: "已替换",
conflict: "冲突",
failed: "失败",
},
replaceHistory: {
replaceTab: "替换",
historyTab: "历史",
batchCount: "{count} 个批次",
empty: "暂无替换批次记录。",
refresh: "刷新历史",
details: "查看批次详情",
delete: "删除记录",
deleteTitle: "删除替换历史",
deleteConfirm: "确定删除本机记录和回滚快照?不会修改已发布的 Nacos 配置,但以后无法在这里回滚这个批次。",
rollbackTitle: "回滚此替换批次",
rollbackConfirm: "确定通过发布接口恢复已确认替换的原始内容?替换后被修改的配置会跳过,已恢复的配置不会再次发布。",
storageUnavailable: "无法使用安全的本地历史存储。请使用 HTTPS 或 localhost,并启用 IndexedDB、Web Crypto 和 Web Locks。不会继续发布。",
storageFailed: "批次历史保存或读取失败,已停止继续发布。请检查本地存储空间,重试前先查看历史;状态不确定的配置需核对 Nacos 单项历史。",
targetMismatch: "此连接已指向不同的 Nacos 服务,或连接已不存在。请重新预览;为保护其他服务,历史回滚已被阻止。",
busy: "另一个页面正在操作此连接,请等待操作完成后重试。",
uncertain: "状态不确定",
notExecuted: "未执行",
interrupted: "部分写入在保存结果前中断。状态不确定的配置不会自动回滚,请核对其 Nacos 单项配置历史。",
state: { applying: "替换未完成", completed: "替换完成", rollingBack: "回滚未完成", rollbackCompleted: "回滚已处理" },
rollbackStatus: { restored: "已恢复", conflict: "回滚冲突", failed: "回滚失败" },
},
batchExport: "批量导出",
batchImport: "批量导入",
copyToNamespace: "配置同步",
+50
View File
@@ -7702,6 +7702,56 @@ export default withEnglishFallback({
clearSearchResults: "清除搜尋結果",
searchResultsExported: "搜尋結果已匯出",
searchResultsExportedTo: "搜尋結果已匯出到 {path}",
contentReplace: "全域取代",
contentReplaceTitle: "批次取代 Nacos 設定內容",
contentReplaceDescription: "先預覽所有符合條件的 Data ID 中區分大小寫的精確取代,確認後再批次發布。",
contentReplaceSearch: "尋找值",
contentReplaceValue: "取代為",
contentReplaceScope: "範圍",
contentReplaceAllGroups: "所有 Group",
contentReplaceAllDataIds: "所有 Data ID",
contentReplaceAllNamespacesWarning: "將掃描並可能發布此連線所有命名空間內的相符設定。套用前請檢查完整取代清單。",
contentReplaceScanning: "已掃描 {scanned} 個設定,找到 {matched} 個相符項目",
contentReplaceIncomplete: "全域搜尋結果不完整,因此未建立取代計畫。請縮小篩選範圍或重試。",
contentReplaceConfigCount: "{count} 個設定",
contentReplaceSelectAll: "選取所有設定",
contentReplaceSelectConfig: "選取 {dataId}",
contentReplaceSelectedCount: "已選取 {selected} / {total} 個設定",
contentReplaceOccurrenceCount: "{count} 處取代",
contentReplaceNoMatches: "已發布的設定中找不到這個精確值。",
contentReplaceViewDiff: "檢視取代差異",
contentReplacePreview: "預覽取代",
contentReplaceApply: "取代已選取的 {count} 個設定",
contentReplaceRollback: "回復已取代的設定",
contentReplaceReport: "成功取代 {replaced} 個,衝突 {conflicts} 個,失敗 {failed} 個",
contentReplaceRollbackReport: "回復結果:已還原 {restored} 個,衝突 {conflicts} 個,失敗 {failed} 個",
contentReplaceStatus: {
replaced: "已取代",
conflict: "衝突",
failed: "失敗",
},
replaceHistory: {
replaceTab: "取代",
historyTab: "歷史記錄",
batchCount: "{count} 個批次",
empty: "尚無取代批次記錄。",
refresh: "重新整理歷史記錄",
details: "檢視批次詳細資料",
delete: "刪除記錄",
deleteTitle: "刪除批次歷史記錄",
deleteConfirm: "確定刪除此裝置的記錄和回復快照嗎?已發布的 Nacos 設定不會變更,但之後無法從這裡回復此批次。",
rollbackTitle: "回復此取代批次",
rollbackConfirm: "確定透過發布介面還原已確認取代的原始內容嗎?取代後曾修改的設定將略過,已還原的設定不會再次發布。",
storageUnavailable: "無法使用安全的本機歷史記錄儲存空間。請使用 HTTPS 或 localhost,並啟用 IndexedDB、Web Crypto 和 Web Locks。不會繼續發布。",
storageFailed: "批次歷史記錄儲存或讀取失敗,已停止繼續發布。請檢查本機儲存空間,重試前先檢視歷史記錄;狀態不明的設定需要核對 Nacos 單項設定歷史。",
targetMismatch: "此連線已指向不同的 Nacos 伺服器,或連線已不存在。請重新預覽;為保護其他伺服器,已禁止從歷史記錄回復。",
busy: "另一個分頁正在操作此連線,請等待操作完成後重試。",
uncertain: "狀態不明",
notExecuted: "未執行",
interrupted: "部分寫入在儲存結果前中斷。狀態不明的設定不會自動回復,請核對其 Nacos 單項設定歷史。",
state: { applying: "取代未完成", completed: "取代完成", rollingBack: "回復未完成", rollbackCompleted: "回復已處理" },
rollbackStatus: { restored: "已還原", conflict: "回復衝突", failed: "回復失敗" },
},
batchExport: "批次匯出",
batchImport: "批次匯入",
copyToNamespace: "設定同步",