updated welsh translations
This commit is contained in:
+26
-2
@@ -220,8 +220,22 @@ const Header = (props) => {
|
||||
<a
|
||||
onClick={() => {
|
||||
window.localStorage.clear(),
|
||||
destroyCookie({}, "pinsUser"),
|
||||
signOut({ callbackUrl: "/logout" });
|
||||
destroyCookie(
|
||||
null,
|
||||
"next-auth.csrf-token"
|
||||
),
|
||||
destroyCookie(
|
||||
null,
|
||||
"next-auth.callback-url"
|
||||
),
|
||||
destroyCookie(null, "pedw_locale"),
|
||||
destroyCookie(null, "pinsUser"),
|
||||
signOut({
|
||||
callbackUrl:
|
||||
locale == "cy"
|
||||
? "/allgofnodi"
|
||||
: "/logout",
|
||||
});
|
||||
}}
|
||||
className="govuk-header__link govuk-!-margin-right-3"
|
||||
>
|
||||
@@ -272,6 +286,16 @@ const Header = (props) => {
|
||||
? "Dewiswch Cymraeg"
|
||||
: "Select English"
|
||||
}
|
||||
onClick={() => {
|
||||
setCookie(
|
||||
null,
|
||||
"pedw_locale",
|
||||
locale == "en" ? "cy" : "en",
|
||||
{
|
||||
path: "/",
|
||||
}
|
||||
);
|
||||
}}
|
||||
>
|
||||
{" "}
|
||||
{t("common:available-in")}
|
||||
|
||||
Reference in New Issue
Block a user