welsh language labels

This commit is contained in:
2025-10-01 09:18:31 +01:00
parent 0b3cb9778b
commit 118d8a56c7
4 changed files with 17 additions and 7 deletions
+1
View File
@@ -47,3 +47,4 @@ certificates/cert.pem
gitclean.sh
pages/admin/logcheck.js
pages/admin/logchecker.js
pages/baracuda.html
+6 -5
View File
@@ -222,6 +222,7 @@
// }
import { useState } from "react";
import useTranslation from "next-translate/useTranslation";
export default function DocumentLink({
id,
@@ -231,7 +232,7 @@ export default function DocumentLink({
getStatus,
}) {
const [progress, setProgress] = useState(null);
let { t } = useTranslation();
const downloadFile = async () => {
setProgress(0);
@@ -309,13 +310,13 @@ export default function DocumentLink({
}
>
{status === "downloading" && progress !== null
? `Downloading `
? t("case:downloading-label")
: status === "queued"
? "Queued"
? t("case:download-queued-label")
: status === "done"
? "Download complete!"
? t("case:download-complete-label")
: status === "failed"
? "Download failed"
? t("case:download-failed-label")
: ""}
</p>
)}
+5 -1
View File
@@ -100,5 +100,9 @@
"do-you-want-to-delete-case-disclaimer-label": "Ar ôl dileu, bydd yr holl wybodaeth a gyflwynwyd gennych yn cael ei cholli.",
"representation-date-passed-label": "Mae'r cyfnod cyflwyno sylwadau ar gyfer yr apêl hon rhwng {{startDate}} a {{endDate}}",
"representation-date-passed-additional-label": "Gallwch wneud sylw drwy e-bostio,",
"date-raised": "Dyddiad codi"
"date-raised": "Dyddiad codi",
"download-complete-label": "Lawrlwytho wedi'i gwblhau!",
"downloading-label": "Wrthi'n llwytho i lawr",
"download-failed-label": "Methodd y lawrlwythiad",
"download-queued-label": "Wedi'i giwio"
}
+5 -1
View File
@@ -100,5 +100,9 @@
"do-you-want-to-delete-case-disclaimer-label": "Once deleted all information you have submited, will be lost.",
"representation-date-passed-label": "The representation period for this appeal is between {{startDate}} and {{endDate}}",
"representation-date-passed-additional-label": "You can make a representation by emailing,",
"date-raised": "Date raised"
"date-raised": "Date raised",
"download-complete-label": "Download complete!",
"downloading-label": "Downloading",
"download-failed-label": "Download failed",
"download-queued-label": "Queued"
}