RED-3800: Manual localazy sync, fixed keys fetch pagination
This commit is contained in:
parent
a8e116e167
commit
1ba9caf5fe
@ -562,12 +562,12 @@
|
||||
"actions": {
|
||||
"cancel-edit": "Cancel",
|
||||
"close": "Close",
|
||||
"display-by-default": "",
|
||||
"display-by-default": "Display by default when opening documents",
|
||||
"edit": "Edit",
|
||||
"export-json": "Export JSON",
|
||||
"export-xml": "Export XML",
|
||||
"save": "Save",
|
||||
"undo": "Undo"
|
||||
"undo": "Undo to: {value}"
|
||||
},
|
||||
"annotations": "<strong>{type}</strong> found on page {page} by rule #{ruleNumber}",
|
||||
"table-header": {
|
||||
@ -576,7 +576,7 @@
|
||||
"transformation-rule": "Transformation rule",
|
||||
"value": "Value"
|
||||
},
|
||||
"title": "Structured Component Management"
|
||||
"title": "Component View"
|
||||
},
|
||||
"component-rules-screen": {
|
||||
"error": {
|
||||
@ -1671,6 +1671,13 @@
|
||||
},
|
||||
"title": "SMTP-Konto konfigurieren"
|
||||
},
|
||||
"generic-errors": {
|
||||
"400": "The sent request is not valid.",
|
||||
"403": "Access to the requested resource is not allowed.",
|
||||
"404": "The requested resource could not be found.",
|
||||
"409": "The request is incompatible with the current state.",
|
||||
"500": "The server encountered an unexpected condition that prevented it from fulfilling the request."
|
||||
},
|
||||
"help-mode": {
|
||||
"bottom-text": "Hilfe-Modus",
|
||||
"button-text": "Help Mode (H)",
|
||||
@ -1769,21 +1776,18 @@
|
||||
"table-header": "{length} {length, plural, one{Begründung} other{Begründung}}"
|
||||
},
|
||||
"license-info-screen": {
|
||||
"backend-version": "Backend-Version der Anwendung",
|
||||
"capacity": {
|
||||
"active-documents": "Active Documents",
|
||||
"all-documents": "Retention Capacity Used",
|
||||
"archived-documents": "Archived Documents",
|
||||
"exceeded-capacity": "Exceeded Capacity",
|
||||
"storage-capacity": "Capacity",
|
||||
"trash-documents": "Documents in Trash",
|
||||
"unused": "Unused Storage"
|
||||
"analysis-capacity-usage": {
|
||||
"analyzed-cumulative": "Cumulative Analyzed Data Volume",
|
||||
"analyzed-per-month": "Analyzed Data Volume per Month",
|
||||
"licensed": "Licensed Capacity",
|
||||
"section-title": "Analysis Capacity Details",
|
||||
"total-analyzed-data": "Total Analyzed Data",
|
||||
"used-in-period": "Analysis Capacity Used in Licensing Period",
|
||||
"used-in-total": "Total Analysis Capacity Used"
|
||||
},
|
||||
"capacity-details": "Kapazitätsdetails",
|
||||
"backend-version": "Backend-Version der Anwendung",
|
||||
"copyright-claim-text": "Copyright © 2020 - {currentYear} knecon",
|
||||
"copyright-claim-title": "Copyright",
|
||||
"current-analyzed-pages": "In aktuellem Lizenzzeitraum analysierte Seiten",
|
||||
"current-volume-analyzed": "Analysis Capacity Used in Licensing Period",
|
||||
"custom-app-title": "Name der Anwendung",
|
||||
"email": {
|
||||
"body": {
|
||||
@ -1795,32 +1799,40 @@
|
||||
"email-report": "E-Mail-Bericht",
|
||||
"end-user-license-text": "Die Nutzung dieses Produkts unterliegt den Bedingungen der Endbenutzer-Lizenzvereinbarung für den RedactManager, sofern darin nichts anderweitig festgelegt.",
|
||||
"end-user-license-title": "Endbenutzer-Lizenzvereinbarung",
|
||||
"license-title": "License Title",
|
||||
"licensed-capacity": "Licensed Analysis Capacity",
|
||||
"licensed-page-count": "Anzahl der lizenzierten Seiten",
|
||||
"licensed-to": "Lizenziert für",
|
||||
"licensing-details": "Lizenzdetails",
|
||||
"licensing-period": "Laufzeit der Lizenz",
|
||||
"ocr-analyzed-pages": "Mit OCR konvertierte Seiten",
|
||||
"pages": {
|
||||
"analyzed-data-per-month": "Analyzed Data Volume per Month",
|
||||
"cumulative-pages": "Seiten insgesamt",
|
||||
"cumulative-volume": "Cumulative Analyzed Data Volume",
|
||||
"pages-per-month": "Seiten pro Monat",
|
||||
"statistics-by-capacity": "Statistics by Capacity",
|
||||
"statistics-by-pages": "Statistics by Pages",
|
||||
"total-analyzed-data": "Total Analyzed Data",
|
||||
"total-pages": "Gesamtzahl der Seiten"
|
||||
"licensing-details": {
|
||||
"license-title": "License Title",
|
||||
"licensed-analysis-capacity": "Licensed Analysis Capacity",
|
||||
"licensed-page-count": "Licensed Pages",
|
||||
"licensed-retention-capacity": "Licensed Retention Capacity",
|
||||
"licensed-to": "Licensed to",
|
||||
"licensing-period": "Licensing Period",
|
||||
"section-title": "Licensing Details"
|
||||
},
|
||||
"page-usage": {
|
||||
"cumulative-pages": "Cumulative Pages",
|
||||
"current-analyzed-pages": "Analyzed Pages in Licensing Period",
|
||||
"ocr-analyzed-pages": "OCR Processed Pages in Licensing Period",
|
||||
"pages-per-month": "Pages per Month",
|
||||
"section-title": "Page Usage Details",
|
||||
"total-analyzed": "Total Analyzed Pages",
|
||||
"total-ocr-analyzed": "Total OCR Processed Pages",
|
||||
"total-pages": "Total Pages",
|
||||
"unlicensed-analyzed": "Unlicensed Analyzed Pages"
|
||||
},
|
||||
"retention-capacity-usage": {
|
||||
"active-documents": "Active Documents",
|
||||
"archived-documents": "Archived Documents",
|
||||
"exceeded-capacity": "Exceeded Capacity",
|
||||
"section-title": "Retention Capacity Details",
|
||||
"storage-capacity": "Capacity",
|
||||
"trash-documents": "Documents in Trash",
|
||||
"unused": "Unused Retention Capacity",
|
||||
"used-capacity": "Retention Capacity Used"
|
||||
},
|
||||
"status": {
|
||||
"active": "Aktiv",
|
||||
"inactive": "Inactive"
|
||||
},
|
||||
"total-analyzed": "Seit {date} insgesamt analysierte Seiten",
|
||||
"total-ocr-analyzed": "Total OCR Processed Pages",
|
||||
"total-volume-analyzed": "Total Analysis Capacity Used",
|
||||
"unlicensed-analyzed": "Über Lizenz hinaus analysierte Seiten",
|
||||
"usage-details": "Nutzungsdetails"
|
||||
}
|
||||
},
|
||||
"license-information": "Lizenzinformationen",
|
||||
"load-all-annotations-success": "All annotations were loaded and are now visible in the document thumbnails",
|
||||
@ -1853,7 +1865,7 @@
|
||||
"false-positive": "Set false positive",
|
||||
"force-hint": "Hinweis erzwingen",
|
||||
"force-redaction": "Schwärzung erzwingen",
|
||||
"hint": "Add hint",
|
||||
"hint": "Hint",
|
||||
"redact": "Redact",
|
||||
"redaction": "Redaction"
|
||||
}
|
||||
@ -2540,12 +2552,5 @@
|
||||
"select": "Wählen"
|
||||
}
|
||||
},
|
||||
"yesterday": "Gestern",
|
||||
"generic-errors": {
|
||||
"400": "",
|
||||
"403": "",
|
||||
"404": "",
|
||||
"409": "",
|
||||
"500": ""
|
||||
}
|
||||
"yesterday": "Gestern"
|
||||
}
|
||||
|
||||
@ -747,12 +747,12 @@
|
||||
}
|
||||
},
|
||||
"dev-mode": "DEV",
|
||||
"dictionary": "Dictionary",
|
||||
"dictionary": "Type",
|
||||
"dictionary-overview": {
|
||||
"compare": {
|
||||
"compare": "Compare",
|
||||
"select-dictionary": "Select Dictionary",
|
||||
"select-dossier": "Select Dossier",
|
||||
"select-dossier": "Select Dictionary",
|
||||
"select-dossier-template": "Select Dossier Template"
|
||||
},
|
||||
"download": "Download current entries",
|
||||
@ -1207,7 +1207,7 @@
|
||||
"change-successful": "Dossier {dossierName} was updated.",
|
||||
"delete-successful": "Dossier {dossierName} was deleted.",
|
||||
"dictionary": {
|
||||
"entries": "{length} {length, plural, one{entry} other{entries}} to {hint, select, true{annotate} other{redact}}",
|
||||
"entries": "{length} {length, plural, one{entry} other{entries}} to redact",
|
||||
"false-positive-entries": "{length} false positive {length, plural, one{entry} other{entries}}",
|
||||
"false-positives": "False Positives",
|
||||
"false-recommendation-entries": "{length} false recommendation {length, plural, one{entry} other{entries}}",
|
||||
@ -1858,7 +1858,7 @@
|
||||
"false-positive": "Set false positive",
|
||||
"force-hint": "Force Hint",
|
||||
"force-redaction": "Force Redaction",
|
||||
"hint": "Add hint",
|
||||
"hint": "Hint",
|
||||
"redact": "Redact",
|
||||
"redaction": "Redaction"
|
||||
}
|
||||
|
||||
@ -40,9 +40,14 @@ export async function downloadLanguage(projectId: string, fileId: string, lang:
|
||||
}
|
||||
|
||||
export async function listKeys(projectId: string, fileId: string, lang: 'en' | 'de'): Promise<Key[]> {
|
||||
const response = await api.listKeysInFileForLanguage({ projectId, fileId, lang });
|
||||
console.log(`Downloaded ${response.keys.length} keys for ${lang} language`);
|
||||
return response.keys;
|
||||
let keys: Key[] = [];
|
||||
let next: string | undefined = undefined;
|
||||
do {
|
||||
const response = await api.listKeysInFileForLanguage({ projectId, fileId, lang, next });
|
||||
next = response.next;
|
||||
keys = [...keys, ...response.keys];
|
||||
} while (next);
|
||||
return keys;
|
||||
}
|
||||
|
||||
export async function updateLocalEn(keys: Key[]): Promise<void> {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user