added in welsh translations and spot check 2

This commit is contained in:
2021-10-25 16:29:36 +01:00
parent 7d0ccf481d
commit 6a1ee7a5d3
41 changed files with 647 additions and 363 deletions
+16 -7
View File
@@ -38,6 +38,13 @@ const Header = (props) => {
"/dns/application-view",
];
let domainSwitch;
if (process.browser) {
domainSwitch = window.switchDomain;
} else {
domainSwitch = process.env.I18N_DOMAIN;
}
return (
<header
className="govuk-header "
@@ -74,7 +81,7 @@ const Header = (props) => {
</Link>
</div> */}
<div className="languageSwitch">
<div className="mobileNav">
{/* <div className="mobileNav">
<div className="mobileMenu">
<input
type="radio"
@@ -140,10 +147,12 @@ const Header = (props) => {
router.query.q
: router.pathname
: router.query.q != null
? router.pathname +
? process.env.I18N_DOMAIN +
"/" +
router.asPath +
"?q=" +
router.query.q
: router.pathname
: router.asPath
}
locale={
locale == "en" ? "cy" : "en"
@@ -176,8 +185,8 @@ const Header = (props) => {
</ul>
</div>
</div>
</div>
<div className="fullNav">
</div> */}
<div className="fullNavs">
{hasContactLink.includes(router.pathname) == true ? (
<Link href="/dns/contact-us">
<a className="govuk-header__link govuk-!-margin-right-3">
@@ -217,8 +226,8 @@ const Header = (props) => {
router.query.q
: router.pathname
: router.query.q != null
? router.pathname + "?q=" + router.query.q
: router.pathname
? router.asPath + "?q=" + router.query.q
: router.asPath
}
locale={locale == "en" ? "cy" : "en"}
>