This commit is contained in:
@@ -0,0 +1,85 @@
|
||||
// English messages of the documents module. Every string a page of this module shows is a key
|
||||
// here and in lt.ts (spec §10.4); `__tests__/i18n.test.ts` fails when the two differ.
|
||||
|
||||
export const en = {
|
||||
title: "Documents",
|
||||
intro:
|
||||
"Upload a document. It is read in the background and every labelled line is proposed for review. Nothing is exported until you approve it.",
|
||||
upload: {
|
||||
label: "Upload a document",
|
||||
hint: "PDF, PNG or JPEG, up to 50 MB.",
|
||||
submit: "Upload",
|
||||
busy: "Uploading",
|
||||
progress: "Uploading {filename}: {percent}%",
|
||||
done: "Uploaded. It will be read in the background.",
|
||||
},
|
||||
list: {
|
||||
empty: "No documents yet.",
|
||||
file: "Document",
|
||||
status: "Status",
|
||||
pages: "Pages",
|
||||
pending: "To review",
|
||||
approved: "Approved",
|
||||
uploaded: "Uploaded",
|
||||
actions: "Actions",
|
||||
review: "Review {filename}",
|
||||
download: "Download {filename}",
|
||||
},
|
||||
status: {
|
||||
queued: "Waiting to be read",
|
||||
processing: "Being read",
|
||||
extracted: "Ready for review",
|
||||
failed: "Could not be read",
|
||||
},
|
||||
failure: {
|
||||
file_missing: "The uploaded file could not be found.",
|
||||
file_changed: "The file changed after it was uploaded.",
|
||||
ocr_failed: "The reader could not process this file.",
|
||||
extraction_refused: "The model declined to read this document.",
|
||||
extraction_truncated: "The model could not finish reading this document.",
|
||||
extraction_invalid: "The model did not answer in the expected form.",
|
||||
},
|
||||
review: {
|
||||
title: "Review: {filename}",
|
||||
back: "All documents",
|
||||
noLines: "No lines were proposed for this document.",
|
||||
waiting: "This document has not been read yet. Reload in a moment.",
|
||||
tableLabel: "Extracted lines",
|
||||
label: "Label",
|
||||
value: "Value",
|
||||
page: "Page",
|
||||
source: "Source",
|
||||
confidence: "Confidence",
|
||||
decision: "Decision",
|
||||
actions: "Actions",
|
||||
approve: "Approve {label}",
|
||||
reject: "Reject {label}",
|
||||
edit: "Edit {label}",
|
||||
save: "Save",
|
||||
cancel: "Cancel",
|
||||
approveAll: "Approve all verified lines",
|
||||
needsReview: "Needs review: the quoted words were not found on the page.",
|
||||
scannedQuote:
|
||||
"Needs review: this quote comes from a scanned page and could not be found in its recognised text. Check it against the page image.",
|
||||
block: "Block {id}",
|
||||
skippedTitle: "Pages not read",
|
||||
skippedPage: "Page {page}: {kind}. It was left out of the extraction.",
|
||||
pageClass: {
|
||||
text: "text page",
|
||||
table: "table page",
|
||||
drawing: "drawing",
|
||||
scan: "scanned page",
|
||||
empty: "empty page",
|
||||
},
|
||||
edited: "Edited",
|
||||
sourceOnPage: "Source, page {page}",
|
||||
pendingCount: "{count, plural, one {# line to review} other {# lines to review}}",
|
||||
approvedCount: "{count, plural, one {# line approved} other {# lines approved}}",
|
||||
state: { pending: "To review", approved: "Approved", rejected: "Rejected" },
|
||||
proposedBy: "Proposed by {model}",
|
||||
export: "Export approved lines (Excel)",
|
||||
exportHint: "Only approved lines are exported.",
|
||||
exportNothing: "Approve at least one line to export.",
|
||||
exported: "The workbook was downloaded.",
|
||||
},
|
||||
} as const
|
||||
@@ -0,0 +1,5 @@
|
||||
// The documents module's messages, as the TypeScript objects its manifest declares (`i18n: { en, lt }`).
|
||||
// kit-core's registry carries them and kit-i18n merges them, so nothing outside the module lists them.
|
||||
|
||||
export { en } from "./en.js"
|
||||
export { lt } from "./lt.js"
|
||||
@@ -0,0 +1,90 @@
|
||||
// Lietuviški documents modulio pranešimai. Kiekvienas puslapio tekstas yra raktas čia ir en.ts
|
||||
// faile; `__tests__/i18n.test.ts` žlunga, kai jie skiriasi.
|
||||
|
||||
import type { en } from "./en.js"
|
||||
|
||||
type Messages<T> = { [K in keyof T]: T[K] extends string ? string : Messages<T[K]> }
|
||||
|
||||
export const lt: Messages<typeof en> = {
|
||||
title: "Dokumentai",
|
||||
intro:
|
||||
"Įkelkite dokumentą. Jis perskaitomas fone, o kiekviena pažymėta eilutė pateikiama peržiūrai. Nieko neeksportuojama, kol jūs nepatvirtinsite.",
|
||||
upload: {
|
||||
label: "Įkelti dokumentą",
|
||||
hint: "PDF, PNG arba JPEG, iki 50 MB.",
|
||||
submit: "Įkelti",
|
||||
busy: "Keliama",
|
||||
progress: "Keliama {filename}: {percent} %",
|
||||
done: "Įkelta. Dokumentas bus perskaitytas fone.",
|
||||
},
|
||||
list: {
|
||||
empty: "Dokumentų dar nėra.",
|
||||
file: "Dokumentas",
|
||||
status: "Būsena",
|
||||
pages: "Puslapiai",
|
||||
pending: "Peržiūrėti",
|
||||
approved: "Patvirtinta",
|
||||
uploaded: "Įkelta",
|
||||
actions: "Veiksmai",
|
||||
review: "Peržiūrėti {filename}",
|
||||
download: "Atsisiųsti {filename}",
|
||||
},
|
||||
status: {
|
||||
queued: "Laukia skaitymo",
|
||||
processing: "Skaitomas",
|
||||
extracted: "Paruoštas peržiūrai",
|
||||
failed: "Nepavyko perskaityti",
|
||||
},
|
||||
failure: {
|
||||
file_missing: "Įkelto failo rasti nepavyko.",
|
||||
file_changed: "Failas pasikeitė po įkėlimo.",
|
||||
ocr_failed: "Skaitytuvas šio failo apdoroti nepavyko.",
|
||||
extraction_refused: "Modelis atsisakė skaityti šio dokumento.",
|
||||
extraction_truncated: "Modelis nepajėgė baigti skaityti šio dokumento.",
|
||||
extraction_invalid: "Modelis neatsakė laukiama forma.",
|
||||
},
|
||||
review: {
|
||||
title: "Peržiūra: {filename}",
|
||||
back: "Visi dokumentai",
|
||||
noLines: "Šiam dokumentui eilučių nepasiūlyta.",
|
||||
waiting: "Dokumentas dar neperskaitytas. Po akimirkos perkraukite puslapį.",
|
||||
tableLabel: "Išgautos eilutės",
|
||||
label: "Pavadinimas",
|
||||
value: "Reikšmė",
|
||||
page: "Puslapis",
|
||||
source: "Šaltinis",
|
||||
confidence: "Patikimumas",
|
||||
decision: "Sprendimas",
|
||||
actions: "Veiksmai",
|
||||
approve: "Patvirtinti: {label}",
|
||||
reject: "Atmesti: {label}",
|
||||
edit: "Redaguoti: {label}",
|
||||
save: "Išsaugoti",
|
||||
cancel: "Atsisakyti",
|
||||
approveAll: "Patvirtinti visas patikrintas eilutes",
|
||||
needsReview: "Reikia peržiūros: nurodytų žodžių puslapyje nerasta.",
|
||||
scannedQuote:
|
||||
"Reikia peržiūros: ši citata paimta iš nuskaityto puslapio ir jos nepavyko rasti atpažintame tekste. Patikrinkite pagal puslapio vaizdą.",
|
||||
block: "Blokas {id}",
|
||||
skippedTitle: "Neperskaityti puslapiai",
|
||||
skippedPage: "{page} puslapis: {kind}. Į išgavimą neįtrauktas.",
|
||||
pageClass: {
|
||||
text: "tekstinis puslapis",
|
||||
table: "lentelės puslapis",
|
||||
drawing: "brėžinys",
|
||||
scan: "nuskaitytas puslapis",
|
||||
empty: "tuščias puslapis",
|
||||
},
|
||||
edited: "Redaguota",
|
||||
sourceOnPage: "Šaltinis, {page} puslapis",
|
||||
pendingCount: "{count, plural, one {# eilutė peržiūrai} few {# eilutės peržiūrai} other {# eilučių peržiūrai}}",
|
||||
approvedCount:
|
||||
"{count, plural, one {# eilutė patvirtinta} few {# eilutės patvirtintos} other {# eilučių patvirtinta}}",
|
||||
state: { pending: "Peržiūrėti", approved: "Patvirtinta", rejected: "Atmesta" },
|
||||
proposedBy: "Pasiūlė: {model}",
|
||||
export: "Eksportuoti patvirtintas eilutes (Excel)",
|
||||
exportHint: "Eksportuojamos tik patvirtintos eilutės.",
|
||||
exportNothing: "Norėdami eksportuoti, patvirtinkite bent vieną eilutę.",
|
||||
exported: "Failas atsisiųstas.",
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user