welsh language labels
This commit is contained in:
@@ -47,3 +47,4 @@ certificates/cert.pem
|
|||||||
gitclean.sh
|
gitclean.sh
|
||||||
pages/admin/logcheck.js
|
pages/admin/logcheck.js
|
||||||
pages/admin/logchecker.js
|
pages/admin/logchecker.js
|
||||||
|
pages/baracuda.html
|
||||||
|
|||||||
@@ -222,6 +222,7 @@
|
|||||||
// }
|
// }
|
||||||
|
|
||||||
import { useState } from "react";
|
import { useState } from "react";
|
||||||
|
import useTranslation from "next-translate/useTranslation";
|
||||||
|
|
||||||
export default function DocumentLink({
|
export default function DocumentLink({
|
||||||
id,
|
id,
|
||||||
@@ -231,7 +232,7 @@ export default function DocumentLink({
|
|||||||
getStatus,
|
getStatus,
|
||||||
}) {
|
}) {
|
||||||
const [progress, setProgress] = useState(null);
|
const [progress, setProgress] = useState(null);
|
||||||
|
let { t } = useTranslation();
|
||||||
const downloadFile = async () => {
|
const downloadFile = async () => {
|
||||||
setProgress(0);
|
setProgress(0);
|
||||||
|
|
||||||
@@ -309,13 +310,13 @@ export default function DocumentLink({
|
|||||||
}
|
}
|
||||||
>
|
>
|
||||||
{status === "downloading" && progress !== null
|
{status === "downloading" && progress !== null
|
||||||
? `Downloading `
|
? t("case:downloading-label")
|
||||||
: status === "queued"
|
: status === "queued"
|
||||||
? "Queued"
|
? t("case:download-queued-label")
|
||||||
: status === "done"
|
: status === "done"
|
||||||
? "Download complete!"
|
? t("case:download-complete-label")
|
||||||
: status === "failed"
|
: status === "failed"
|
||||||
? "Download failed"
|
? t("case:download-failed-label")
|
||||||
: ""}
|
: ""}
|
||||||
</p>
|
</p>
|
||||||
)}
|
)}
|
||||||
|
|||||||
@@ -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.",
|
"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-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,",
|
"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"
|
||||||
}
|
}
|
||||||
@@ -100,5 +100,9 @@
|
|||||||
"do-you-want-to-delete-case-disclaimer-label": "Once deleted all information you have submited, will be lost.",
|
"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-label": "The representation period for this appeal is between {{startDate}} and {{endDate}}",
|
||||||
"representation-date-passed-additional-label": "You can make a representation by emailing,",
|
"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"
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user