Merged PR 2420: added welsh translations of api endpoints
added welsh translations of api endpoints Related work items: #23879
This commit is contained in:
+59
-55
@@ -22,32 +22,32 @@ const nextBuildId = require("next-build-id");
|
||||
const securityHeaders = [
|
||||
{
|
||||
key: "X-DNS-Prefetch-Control",
|
||||
value: "on",
|
||||
value: "on"
|
||||
},
|
||||
{
|
||||
key: "X-Frame-Options",
|
||||
value: "SAMEORIGIN",
|
||||
value: "SAMEORIGIN"
|
||||
},
|
||||
{
|
||||
key: "X-Content-Type-Options",
|
||||
value: "nosniff",
|
||||
value: "nosniff"
|
||||
},
|
||||
{
|
||||
key: "X-Permitted-Cross-Domain-Policies",
|
||||
value: "none",
|
||||
value: "none"
|
||||
},
|
||||
{
|
||||
key: "Referrer-Policy",
|
||||
value: "origin-when-cross-origin", //no-referrer
|
||||
value: "origin-when-cross-origin" //no-referrer
|
||||
},
|
||||
{
|
||||
key: "Strict-Transport-Security",
|
||||
value: "max-age=63072000; includeSubDomains; preload",
|
||||
value: "max-age=63072000; includeSubDomains; preload"
|
||||
},
|
||||
{
|
||||
key: "X-XSS-Protection",
|
||||
value: "1; mode=block",
|
||||
},
|
||||
value: "1; mode=block"
|
||||
}
|
||||
// {
|
||||
// key: "Content-Security-Policy",
|
||||
// value: "frame-src 'self'; child-src 'self';object-src 'none'; script-src 'self' 'https://www.googletagmanager.com' unsafe-inline",
|
||||
@@ -61,11 +61,11 @@ module.exports = {
|
||||
eslint: {
|
||||
// Warning: This allows production builds to successfully complete even if
|
||||
// your project has ESLint errors.
|
||||
ignoreDuringBuilds: true,
|
||||
ignoreDuringBuilds: true
|
||||
},
|
||||
reactStrictMode: false,
|
||||
env: {
|
||||
BUILD_ID_ENV: buildId,
|
||||
BUILD_ID_ENV: buildId
|
||||
},
|
||||
swcMinify: false,
|
||||
sassOptions: {
|
||||
@@ -73,16 +73,16 @@ module.exports = {
|
||||
"/styles/sass",
|
||||
"node_modules/govuk-frontend/govuk/all",
|
||||
"/styles/sass/patterns",
|
||||
"/styles/sass/welshgov",
|
||||
], // @import 'variables'; # loads (src/styles/varialbes.scss), you got it..
|
||||
"/styles/sass/welshgov"
|
||||
] // @import 'variables'; # loads (src/styles/varialbes.scss), you got it..
|
||||
},
|
||||
async headers() {
|
||||
return [
|
||||
{
|
||||
// Apply these headers to all routes in your application.
|
||||
source: "/(.*)?",
|
||||
headers: securityHeaders,
|
||||
},
|
||||
headers: securityHeaders
|
||||
}
|
||||
];
|
||||
},
|
||||
generateBuildId: () => buildId,
|
||||
@@ -91,71 +91,75 @@ module.exports = {
|
||||
return [
|
||||
{
|
||||
source: "/ceisiadaudns",
|
||||
destination: "/dnsapplications",
|
||||
destination: "/dnsapplications"
|
||||
},
|
||||
{
|
||||
source: "/manyliondns",
|
||||
destination: "/dnsdetails",
|
||||
destination: "/dnsdetails"
|
||||
},
|
||||
{
|
||||
source: "/canlyniadauchwilio",
|
||||
destination: "/searchresults",
|
||||
destination: "/searchresults"
|
||||
},
|
||||
{
|
||||
source: "/fymhorth/canlyniadauchwilio",
|
||||
destination: "/myportal/searchresults",
|
||||
destination: "/myportal/searchresults"
|
||||
},
|
||||
{
|
||||
source: "/cyswllt",
|
||||
destination: "/contactus",
|
||||
destination: "/contactus"
|
||||
},
|
||||
{
|
||||
source: "/fymhorth/cyswllt",
|
||||
destination: "/myportal/contactus",
|
||||
destination: "/myportal/contactus"
|
||||
},
|
||||
{
|
||||
source: "/chwiliouwch",
|
||||
destination: "/advancedsearch",
|
||||
destination: "/advancedsearch"
|
||||
},
|
||||
{
|
||||
source: "/chwiliadcyfeiriadau",
|
||||
destination: "/addresssearch",
|
||||
destination: "/addresssearch"
|
||||
},
|
||||
{
|
||||
source: "/fymhorth/chwiliouwch",
|
||||
destination: "/myportal/advancedsearch",
|
||||
destination: "/myportal/advancedsearch"
|
||||
},
|
||||
{
|
||||
source: "/fymhorth/chwiliadcyfeiriadau",
|
||||
destination: "/myportal/addresssearch",
|
||||
destination: "/myportal/addresssearch"
|
||||
},
|
||||
{
|
||||
source: "/canlyniadauchwiliouwch",
|
||||
destination: "/advancedsearchresults",
|
||||
destination: "/advancedsearchresults"
|
||||
},
|
||||
{
|
||||
source: "/canlyniadaucyfeiriadau",
|
||||
destination: "/addresssearchresults",
|
||||
destination: "/addresssearchresults"
|
||||
},
|
||||
{
|
||||
source: "/fymhorth/canlyniadauchwiliouwch",
|
||||
destination: "/myportal/advancedsearchresults",
|
||||
destination: "/myportal/advancedsearchresults"
|
||||
},
|
||||
{
|
||||
source: "/fymhorth/canlyniadaucyfeiriadau",
|
||||
destination: "/myportal/addresssearchresults",
|
||||
destination: "/myportal/addresssearchresults"
|
||||
},
|
||||
{
|
||||
source: "/fymhorth/dns/:slug",
|
||||
destination: "/myportal/dns/:slug"
|
||||
},
|
||||
{
|
||||
source: "/fymhorth",
|
||||
destination: "/myportal",
|
||||
destination: "/myportal"
|
||||
},
|
||||
{
|
||||
source: "/achos",
|
||||
destination: "/case",
|
||||
destination: "/case"
|
||||
},
|
||||
{
|
||||
source: "/achos/:slug",
|
||||
destination: "/case/:slug",
|
||||
destination: "/case/:slug"
|
||||
},
|
||||
// {
|
||||
// source: "/achos/id/:slug",
|
||||
@@ -163,11 +167,11 @@ module.exports = {
|
||||
// },
|
||||
{
|
||||
source: "/fymhorth/achos",
|
||||
destination: "/myportal/case",
|
||||
destination: "/myportal/case"
|
||||
},
|
||||
{
|
||||
source: "/fymhorth/ceisiadaudns",
|
||||
destination: "/myportal/dnsapplications",
|
||||
destination: "/myportal/dnsapplications"
|
||||
},
|
||||
// {
|
||||
// source: "/fymhorth/achos/id/:slug",
|
||||
@@ -175,84 +179,84 @@ module.exports = {
|
||||
// },
|
||||
{
|
||||
source: "/fymhorth/achos/:slug",
|
||||
destination: "/myportal/case/:slug",
|
||||
destination: "/myportal/case/:slug"
|
||||
},
|
||||
{
|
||||
source: "/fymhorth/gweldpopeth",
|
||||
destination: "/myportal/viewall",
|
||||
destination: "/myportal/viewall"
|
||||
},
|
||||
{
|
||||
source: "/fymhorth/:slug",
|
||||
destination: "/myportal/:slug",
|
||||
destination: "/myportal/:slug"
|
||||
},
|
||||
{
|
||||
source: "/fymhorth/cynrychiolaeth",
|
||||
destination: "/myportal/representation",
|
||||
destination: "/myportal/representation"
|
||||
},
|
||||
{
|
||||
source: "/manylionpellach",
|
||||
destination: "/furtherdetails",
|
||||
destination: "/furtherdetails"
|
||||
},
|
||||
{
|
||||
source: "/allgofnodi",
|
||||
destination: "/logout",
|
||||
destination: "/logout"
|
||||
},
|
||||
{
|
||||
source: "/apelnewydd",
|
||||
destination: "/newappeal",
|
||||
destination: "/newappeal"
|
||||
},
|
||||
{
|
||||
source: "/apelnewydd/:path*",
|
||||
destination: "/newappeal/:path*",
|
||||
destination: "/newappeal/:path*"
|
||||
},
|
||||
{
|
||||
source: "/cyfrif/cofrestr",
|
||||
destination: "/account/register",
|
||||
destination: "/account/register"
|
||||
},
|
||||
{
|
||||
source: "/help/cwcis",
|
||||
destination: "/help/cookies",
|
||||
destination: "/help/cookies"
|
||||
},
|
||||
{
|
||||
source: "/hygyrchedd",
|
||||
destination: "/accessibility",
|
||||
destination: "/accessibility"
|
||||
},
|
||||
{
|
||||
source: "/preifatrwydd",
|
||||
destination: "/privacy",
|
||||
destination: "/privacy"
|
||||
},
|
||||
{
|
||||
source: "/manylion-am-gwcis",
|
||||
destination: "/details-about-cookies",
|
||||
destination: "/details-about-cookies"
|
||||
},
|
||||
{
|
||||
source: "/telerau-ac-amodau",
|
||||
destination: "/terms-and-conditions",
|
||||
destination: "/terms-and-conditions"
|
||||
},
|
||||
{
|
||||
source: "/awd/mewngofnodi",
|
||||
destination: "/auth/signin",
|
||||
destination: "/auth/signin"
|
||||
},
|
||||
{
|
||||
source: "/awd/mewngofnodi/ebost",
|
||||
destination: "/auth/signin/email",
|
||||
destination: "/auth/signin/email"
|
||||
},
|
||||
{
|
||||
source: "/awd/gwall",
|
||||
destination: "/auth/error",
|
||||
destination: "/auth/error"
|
||||
},
|
||||
{
|
||||
source: "/awd/gwirio-cais",
|
||||
destination: "/auth/verify-request",
|
||||
destination: "/auth/verify-request"
|
||||
},
|
||||
{
|
||||
source: "/cyfrif/cofrestr",
|
||||
destination: "/account/register",
|
||||
destination: "/account/register"
|
||||
},
|
||||
{
|
||||
source: "/awd/gwirio-cais",
|
||||
destination: "/auth/verify-request",
|
||||
},
|
||||
destination: "/auth/verify-request"
|
||||
}
|
||||
|
||||
// {
|
||||
// source: "/cy:path*",
|
||||
@@ -260,5 +264,5 @@ module.exports = {
|
||||
// },
|
||||
];
|
||||
},
|
||||
...nextTranslate(),
|
||||
...nextTranslate()
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user