Skip to content

Commit c012a0a

Browse files
committed
fix: add translation
1 parent 311b694 commit c012a0a

6 files changed

Lines changed: 24 additions & 3 deletions

File tree

src/app/components/UploadPanel.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ export default function UploadPanel({ onBack }: { onBack: () => void }) {
4343
);
4444

4545
const sourceOptions = [
46-
{ value: "gitlab", text: "GitLab" },
47-
{ value: "other", text: "Other" },
46+
{ value: "gitlab", text: t("editor.gitlab") },
47+
{ value: "other", text: t("editor.other") },
4848
];
4949

5050
const handleSubmit = (event: FormEvent<HTMLFormElement>) => {
@@ -182,13 +182,14 @@ export default function UploadPanel({ onBack }: { onBack: () => void }) {
182182
<p className="text-dark">{t("editor.pastefile")}</p>
183183
</Row>
184184
<Row className="my-4">
185+
<p className="text-dark mb-2">{t("editor.source")}</p>
185186
<Combobox
186187
data={sourceOptions}
187188
value={sourceOptions.find(opt => opt.value === source)}
188189
onChange={handleSourceChange}
189190
textField="text"
190191
className="w-100"
191-
placeholder="Select Source"
192+
placeholder={t("editor.selectSource")}
192193
/>
193194
</Row>
194195
<Row>

src/i18n/locales/de.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@
1717
"browse": "Auswählen",
1818
"pastefile": "Remote URL publiccode.yaml einfügen",
1919
"importSource": "Importquelle auswählen",
20+
"selectSource": "Quelle auswählen",
21+
"source": "Quelle",
22+
"gitlab": "GitLab",
23+
"other": "Andere",
2024
"load": "Laden",
2125
"notvalidurl": "Ungültige URL",
2226
"filenotsupported": "Dateityp nicht unterstützt",

src/i18n/locales/en.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@
3030
"browse": "Browse",
3131
"pastefile": "Paste remote publiccode.yaml url",
3232
"importSource": "Select import source",
33+
"selectSource": "Select source",
34+
"source": "Source",
35+
"gitlab": "GitLab",
36+
"other": "Other",
3337
"load": "Load",
3438
"notvalidurl": "Not a valid url",
3539
"filenotsupported": "File type not supported",

src/i18n/locales/fr.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@
3030
"browse": "Browse",
3131
"pastefile": "Paste remote publiccode.yaml url",
3232
"importSource": "Select import source",
33+
"selectSource": "Sélectionner la source",
34+
"source": "Source",
35+
"gitlab": "GitLab",
36+
"other": "Autre",
3337
"load": "Load",
3438
"notvalidurl": "Not a valid url",
3539
"filenotsupported": "File type not supported",

src/i18n/locales/it.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@
3131
"browse": "Sfoglia",
3232
"pastefile": "Incolla l'URL del tuo publiccode.yml",
3333
"importSource": "Seleziona tipologia",
34+
"selectSource": "Seleziona Sorgente",
35+
"source": "Sorgente",
36+
"gitlab": "GitLab",
37+
"other": "Altro",
3438
"load": "Carica",
3539
"notvalidurl": "URL non valido",
3640
"filenotsupported": "File non supportato",

src/i18n/locales/nl.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@
3030
"browse": "Bladeren",
3131
"pastefile": "Plak externe publiccode.yaml url",
3232
"importSource": "Selecteer importbron",
33+
"selectSource": "Selecteer Bron",
34+
"source": "Bron",
35+
"gitlab": "GitLab",
36+
"other": "Andere",
3337
"load": "Laden",
3438
"notvalidurl": "Geen geldige url",
3539
"filenotsupported": "Bestandstype niet ondersteund",

0 commit comments

Comments
 (0)