added in welsh translations and spot check 2
This commit is contained in:
+16
-7
@@ -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"}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user