Skip to content

Commit ba564b9

Browse files
committed
feat: add estonian, spanish, dutch and polish
1 parent b12cbde commit ba564b9

File tree

5 files changed

+270
-6
lines changed

5 files changed

+270
-6
lines changed

src/i18n/index.ts

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,26 @@
11
import i18n from "i18next";
22
import { initReactI18next } from "react-i18next";
33

4+
import deTranslations from "./locales/de.json";
45
import enTranslations from "./locales/en.json";
6+
import esTranslations from "./locales/es.json";
7+
import etTranslations from "./locales/et.json";
58
import frTranslations from "./locales/fr.json";
6-
import deTranslations from "./locales/de.json";
7-
import ptTranslations from "./locales/pt.json";
89
import itTranslations from "./locales/it.json";
10+
import nlTranslations from "./locales/nl.json";
11+
import plTranslations from "./locales/pl.json";
12+
import ptTranslations from "./locales/pt.json";
913

1014
export const SUPPORTED_LANGUAGES = {
15+
de: "Deutsch",
1116
en: "English",
17+
es: "Español",
18+
et: "Eesti",
1219
fr: "Français",
13-
de: "Deutsch",
14-
pt: "Português",
1520
it: "Italiano",
21+
nl: "Nederlands",
22+
pl: "Polski",
23+
pt: "Português",
1624
} as const;
1725

1826
export type SupportedLanguage = keyof typeof SUPPORTED_LANGUAGES;
@@ -36,11 +44,15 @@ const defaultLanguage = getStoredLanguage() ?? getBrowserLanguage();
3644

3745
i18n.use(initReactI18next).init({
3846
resources: {
47+
de: { translation: deTranslations },
3948
en: { translation: enTranslations },
49+
es: { translation: esTranslations },
50+
et: { translation: etTranslations },
4051
fr: { translation: frTranslations },
41-
de: { translation: deTranslations },
42-
pt: { translation: ptTranslations },
4352
it: { translation: itTranslations },
53+
nl: { translation: nlTranslations },
54+
pl: { translation: plTranslations },
55+
pt: { translation: ptTranslations },
4456
},
4557
lng: defaultLanguage,
4658
fallbackLng: "en",

src/i18n/locales/es.json

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
{
2+
"header": {
3+
"title": "Detección de campos de formularios PDF basada en navegador",
4+
"subtitle": "Detecta automáticamente campos de formularios en PDFs con CommonForms usando ONNX Runtime Web",
5+
"privacyFriendly": "Respetuoso con la privacidad",
6+
"runsInBrowser": "Funciona en el navegador",
7+
"aboutCommonForms": "Acerca de CommonForms",
8+
"aboutCommonFormsDescription": "<0>CommonForms</0> de <1>Joe Barrow</1> utiliza modelos FFDNet entrenados en un amplio conjunto de datos de formularios para detectar automáticamente cuadros de texto, casillas de verificación y campos de firma en documentos PDF.",
9+
"howItWorks": "Cómo funciona",
10+
"howItWorksBullet1": "Detección basada en YOLO con <0>ONNX Runtime</0>",
11+
"howItWorksBullet2": "Detecta y añade los campos acrofields PDF relevantes",
12+
"howItWorksBullet3": "Funciona completamente en el navegador",
13+
"howItWorksBullet4": "Rellena o descarga el PDF resultante",
14+
"arxivPaper": "Artículo arXiv"
15+
},
16+
"modelSelection": {
17+
"selectModel": "Seleccionar modelo:",
18+
"confidenceThreshold": "Umbral de confianza:"
19+
},
20+
"processingSteps": {
21+
"step1": "Paso 1:",
22+
"step1Title": "Cargar formulario PDF",
23+
"step2": "Paso 2:",
24+
"step2Title": "Detectar campos del formulario",
25+
"step3": "Paso 3:",
26+
"step3Title": "Rellenar o descargar",
27+
"choosePdfForm": "Elegir formulario PDF",
28+
"selectedFile": "Seleccionado: {{fileName}}",
29+
"exampleButton": "Formulario CERFA de ejemplo",
30+
"detectButton": "Detectar campos del formulario",
31+
"processing": "Procesando...",
32+
"fillForm": "Rellenar formulario",
33+
"downloadPdf": "Descargar PDF rellenable"
34+
},
35+
"statusMessages": {
36+
"loadingPdf": "Cargando PDF...",
37+
"runningDetection": "Ejecutando detección de campos del formulario usando el modelo {{modelName}}...",
38+
"processingPage": "Procesando página {{current}} de {{total}}...",
39+
"applyingAcroFields": "Aplicando AcroFields al PDF..."
40+
},
41+
"detectionResults": {
42+
"detectedFormFields": "Campos de formulario detectados",
43+
"statistics": "Estadísticas",
44+
"totalPages": "Páginas totales:",
45+
"confidenceThresholdLabel": "Umbral de confianza:",
46+
"fieldsDetected": "Campos detectados:",
47+
"currentPage": "Página actual:",
48+
"processingTime": "Tiempo de procesamiento:",
49+
"pageOfTotal": "Página {{current}} de {{total}}"
50+
},
51+
"errors": {
52+
"invalidPdfFile": "Por favor selecciona un archivo PDF válido",
53+
"pdfEncryptedOrMalformed": "Este PDF está protegido con contraseña o está malformado. Si no está protegido con contraseña, intenta convertirlo primero a PDF/A en",
54+
"pdfEncryptedNotAffiliated": "(no estamos afiliados con este servicio).",
55+
"pdfProcessingFailed": "Error desconocido al procesar el PDF: {{errorMessage}}",
56+
"detectionFailed": "Error al detectar campos del formulario: {{errorMessage}}",
57+
"acroFieldsFailed": "Error al aplicar AcroFields: {{errorMessage}}"
58+
},
59+
"warnings": {
60+
"pdfHasAcrofields": "Este PDF ya contiene {{count}} campo rellenable. Si continúas, será reemplazado por los campos recién detectados.",
61+
"pdfHasAcrofields_other": "Este PDF ya contiene {{count}} campos rellenables. Si continúas, serán reemplazados por los campos recién detectados."
62+
}
63+
}

src/i18n/locales/et.json

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
{
2+
"header": {
3+
"title": "Brauserpõhine PDF-vormiväljade tuvastamine",
4+
"subtitle": "Tuvastuslikus automaatselt vormivälju PDF-failides CommonForms abil kasutades ONNX Runtime Web",
5+
"privacyFriendly": "Privaatsussõbralik",
6+
"runsInBrowser": "Töötab brauseris",
7+
"aboutCommonForms": "CommonFormsi kohta",
8+
"aboutCommonFormsDescription": "<0>CommonForms</0> autor <1>Joe Barrow</1> kasutab FFDNet mudeleid, mis on treenitud laialdase vormide andmekogumi põhjal, et automaatselt tuvastada tekstikaste, märkeruute ja allkirjavälju PDF-dokumentides.",
9+
"howItWorks": "Kuidas see toimib",
10+
"howItWorksBullet1": "YOLO-põhine tuvastus <0>ONNX Runtime</0> abil",
11+
"howItWorksBullet2": "Tuvastab ja lisab asjakohased PDF acrofield väljad",
12+
"howItWorksBullet3": "Töötab täielikult brauseris",
13+
"howItWorksBullet4": "Täida või laadi alla tulemuseks olev PDF",
14+
"arxivPaper": "arXiv artikkel"
15+
},
16+
"modelSelection": {
17+
"selectModel": "Vali mudel:",
18+
"confidenceThreshold": "Kindluse lävi:"
19+
},
20+
"processingSteps": {
21+
"step1": "Samm 1:",
22+
"step1Title": "Laadi üles PDF-vorm",
23+
"step2": "Samm 2:",
24+
"step2Title": "Tuvasta vormiväljad",
25+
"step3": "Samm 3:",
26+
"step3Title": "Täida või laadi alla",
27+
"choosePdfForm": "Vali PDF-vorm",
28+
"selectedFile": "Valitud: {{fileName}}",
29+
"exampleButton": "CERFA vormi näide",
30+
"detectButton": "Tuvasta vormiväljad",
31+
"processing": "Töötlemine...",
32+
"fillForm": "Täida vorm",
33+
"downloadPdf": "Laadi alla täidetav PDF"
34+
},
35+
"statusMessages": {
36+
"loadingPdf": "PDF-i laadimine...",
37+
"runningDetection": "Vormiväljade tuvastamine mudeli {{modelName}} abil...",
38+
"processingPage": "Lehe {{current}} töötlemine {{total}}-st...",
39+
"applyingAcroFields": "AcroFieldsi rakendamine PDF-ile..."
40+
},
41+
"detectionResults": {
42+
"detectedFormFields": "Tuvastatud vormiväljad",
43+
"statistics": "Statistika",
44+
"totalPages": "Lehekülgi kokku:",
45+
"confidenceThresholdLabel": "Kindluse lävi:",
46+
"fieldsDetected": "Tuvastatud väljad:",
47+
"currentPage": "Praegune lehekülg:",
48+
"processingTime": "Töötlemisaeg:",
49+
"pageOfTotal": "Lehekülg {{current}} / {{total}}"
50+
},
51+
"errors": {
52+
"invalidPdfFile": "Palun vali kehtiv PDF-fail",
53+
"pdfEncryptedOrMalformed": "See PDF on parooliga kaitstud või vigane. Kui see ei ole parooliga kaitstud, proovi seda esmalt konverteerida PDF/A formaati aadressil",
54+
"pdfEncryptedNotAffiliated": "(me ei ole selle teenusega seotud).",
55+
"pdfProcessingFailed": "Tundmatu viga PDF-i töötlemisel: {{errorMessage}}",
56+
"detectionFailed": "Vormiväljade tuvastamine ebaõnnestus: {{errorMessage}}",
57+
"acroFieldsFailed": "AcroFieldsi rakendamine ebaõnnestus: {{errorMessage}}"
58+
},
59+
"warnings": {
60+
"pdfHasAcrofields": "See PDF sisaldab juba {{count}} täidetavat välja. Kui jätkad, asendatakse see äsja tuvastatud väljadega.",
61+
"pdfHasAcrofields_other": "See PDF sisaldab juba {{count}} täidetavat välja. Kui jätkad, asendatakse need äsja tuvastatud väljadega."
62+
}
63+
}

src/i18n/locales/nl.json

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
{
2+
"header": {
3+
"title": "Browsergebaseerde PDF-formuliervelddetectie",
4+
"subtitle": "Detecteer automatisch formuliervelden in PDF's met CommonForms met behulp van ONNX Runtime Web",
5+
"privacyFriendly": "Privacyvriendelijk",
6+
"runsInBrowser": "Werkt in de browser",
7+
"aboutCommonForms": "Over CommonForms",
8+
"aboutCommonFormsDescription": "<0>CommonForms</0> door <1>Joe Barrow</1> gebruikt FFDNet-modellen die zijn getraind op een grote dataset van formulieren om automatisch tekstvakken, selectievakjes en handtekeningvelden in PDF-documenten te detecteren.",
9+
"howItWorks": "Hoe het werkt",
10+
"howItWorksBullet1": "YOLO-gebaseerde detectie met <0>ONNX Runtime</0>",
11+
"howItWorksBullet2": "Detecteert en voegt relevante PDF acrofields toe",
12+
"howItWorksBullet3": "Werkt volledig in de browser",
13+
"howItWorksBullet4": "Vul de resulterende PDF in of download deze",
14+
"arxivPaper": "arXiv artikel"
15+
},
16+
"modelSelection": {
17+
"selectModel": "Selecteer model:",
18+
"confidenceThreshold": "Vertrouwensdrempel:"
19+
},
20+
"processingSteps": {
21+
"step1": "Stap 1:",
22+
"step1Title": "PDF-formulier uploaden",
23+
"step2": "Stap 2:",
24+
"step2Title": "Formuliervelden detecteren",
25+
"step3": "Stap 3:",
26+
"step3Title": "Invullen of downloaden",
27+
"choosePdfForm": "Kies PDF-formulier",
28+
"selectedFile": "Geselecteerd: {{fileName}}",
29+
"exampleButton": "Voorbeeld CERFA-formulier",
30+
"detectButton": "Formuliervelden detecteren",
31+
"processing": "Verwerken...",
32+
"fillForm": "Formulier invullen",
33+
"downloadPdf": "Download invulbare PDF"
34+
},
35+
"statusMessages": {
36+
"loadingPdf": "PDF laden...",
37+
"runningDetection": "Formuliervelddetectie uitvoeren met model {{modelName}}...",
38+
"processingPage": "Pagina {{current}} van {{total}} verwerken...",
39+
"applyingAcroFields": "AcroFields toepassen op PDF..."
40+
},
41+
"detectionResults": {
42+
"detectedFormFields": "Gedetecteerde formuliervelden",
43+
"statistics": "Statistieken",
44+
"totalPages": "Totaal aantal pagina's:",
45+
"confidenceThresholdLabel": "Vertrouwensdrempel:",
46+
"fieldsDetected": "Gedetecteerde velden:",
47+
"currentPage": "Huidige pagina:",
48+
"processingTime": "Verwerkingstijd:",
49+
"pageOfTotal": "Pagina {{current}} van {{total}}"
50+
},
51+
"errors": {
52+
"invalidPdfFile": "Selecteer een geldig PDF-bestand",
53+
"pdfEncryptedOrMalformed": "Deze PDF is met een wachtwoord beveiligd of beschadigd. Als het niet met een wachtwoord is beveiligd, probeer het dan eerst te converteren naar PDF/A op",
54+
"pdfEncryptedNotAffiliated": "(we zijn niet gelieerd aan deze dienst).",
55+
"pdfProcessingFailed": "Onbekende fout bij het verwerken van PDF: {{errorMessage}}",
56+
"detectionFailed": "Detectie van formuliervelden mislukt: {{errorMessage}}",
57+
"acroFieldsFailed": "Toepassen van AcroFields mislukt: {{errorMessage}}"
58+
},
59+
"warnings": {
60+
"pdfHasAcrofields": "Deze PDF bevat al {{count}} invulbaar veld. Als u doorgaat, wordt dit vervangen door de nieuw gedetecteerde velden.",
61+
"pdfHasAcrofields_other": "Deze PDF bevat al {{count}} invulbare velden. Als u doorgaat, worden deze vervangen door de nieuw gedetecteerde velden."
62+
}
63+
}

src/i18n/locales/pl.json

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
{
2+
"header": {
3+
"title": "Wykrywanie pól formularzy PDF w przeglądarce",
4+
"subtitle": "Automatycznie wykrywaj pola formularzy w plikach PDF za pomocą CommonForms wykorzystując ONNX Runtime Web",
5+
"privacyFriendly": "Przyjazny dla prywatności",
6+
"runsInBrowser": "Działa w przeglądarce",
7+
"aboutCommonForms": "O CommonForms",
8+
"aboutCommonFormsDescription": "<0>CommonForms</0> autorstwa <1>Joe Barrow</1> wykorzystuje modele FFDNet wytrenowane na obszernym zbiorze danych formularzy do automatycznego wykrywania pól tekstowych, pól wyboru i pól podpisu w dokumentach PDF.",
9+
"howItWorks": "Jak to działa",
10+
"howItWorksBullet1": "Wykrywanie oparte na YOLO z <0>ONNX Runtime</0>",
11+
"howItWorksBullet2": "Wykrywa i dodaje odpowiednie pola acrofields PDF",
12+
"howItWorksBullet3": "Działa całkowicie w przeglądarce",
13+
"howItWorksBullet4": "Wypełnij lub pobierz wynikowy PDF",
14+
"arxivPaper": "Artykuł arXiv"
15+
},
16+
"modelSelection": {
17+
"selectModel": "Wybierz model:",
18+
"confidenceThreshold": "Próg pewności:"
19+
},
20+
"processingSteps": {
21+
"step1": "Krok 1:",
22+
"step1Title": "Prześlij formularz PDF",
23+
"step2": "Krok 2:",
24+
"step2Title": "Wykryj pola formularza",
25+
"step3": "Krok 3:",
26+
"step3Title": "Wypełnij lub pobierz",
27+
"choosePdfForm": "Wybierz formularz PDF",
28+
"selectedFile": "Wybrano: {{fileName}}",
29+
"exampleButton": "Przykładowy formularz CERFA",
30+
"detectButton": "Wykryj pola formularza",
31+
"processing": "Przetwarzanie...",
32+
"fillForm": "Wypełnij formularz",
33+
"downloadPdf": "Pobierz wypełnialny PDF"
34+
},
35+
"statusMessages": {
36+
"loadingPdf": "Ładowanie PDF...",
37+
"runningDetection": "Uruchamianie wykrywania pól formularza przy użyciu modelu {{modelName}}...",
38+
"processingPage": "Przetwarzanie strony {{current}} z {{total}}...",
39+
"applyingAcroFields": "Stosowanie AcroFields do PDF..."
40+
},
41+
"detectionResults": {
42+
"detectedFormFields": "Wykryte pola formularza",
43+
"statistics": "Statystyki",
44+
"totalPages": "Wszystkich stron:",
45+
"confidenceThresholdLabel": "Próg pewności:",
46+
"fieldsDetected": "Wykryte pola:",
47+
"currentPage": "Bieżąca strona:",
48+
"processingTime": "Czas przetwarzania:",
49+
"pageOfTotal": "Strona {{current}} z {{total}}"
50+
},
51+
"errors": {
52+
"invalidPdfFile": "Proszę wybrać prawidłowy plik PDF",
53+
"pdfEncryptedOrMalformed": "Ten PDF jest chroniony hasłem lub uszkodzony. Jeśli nie jest chroniony hasłem, spróbuj najpierw przekonwertować go na PDF/A na",
54+
"pdfEncryptedNotAffiliated": "(nie jesteśmy powiązani z tą usługą).",
55+
"pdfProcessingFailed": "Nieznany błąd podczas przetwarzania PDF: {{errorMessage}}",
56+
"detectionFailed": "Wykrywanie pól formularza nie powiodło się: {{errorMessage}}",
57+
"acroFieldsFailed": "Stosowanie AcroFields nie powiodło się: {{errorMessage}}"
58+
},
59+
"warnings": {
60+
"pdfHasAcrofields": "Ten PDF zawiera już {{count}} pole do wypełnienia. Jeśli będziesz kontynuować, zostanie ono zastąpione nowo wykrytymi polami.",
61+
"pdfHasAcrofields_other": "Ten PDF zawiera już {{count}} pól do wypełnienia. Jeśli będziesz kontynuować, zostaną one zastąpione nowo wykrytymi polami."
62+
}
63+
}

0 commit comments

Comments
 (0)