welsh changes
This commit is contained in:
@@ -44,7 +44,7 @@ import {
|
||||
setAwaitingSubmissionDetails,
|
||||
setAwaitingSubmissionFromBlob,
|
||||
} from "../../store/awaitingSubmission/action";
|
||||
import { setCurrentView } from "../../store/currentView/action";
|
||||
import { setCurrentView, setLocale } from "../../store/currentView/action";
|
||||
import { setForm } from "../../store/formData/action";
|
||||
import { wrapper } from "../../store/store";
|
||||
import ServiceBanner from "../../components/myportal/servicebanner";
|
||||
@@ -238,6 +238,9 @@ export const getServerSideProps = wrapper.getServerSideProps(
|
||||
};
|
||||
}
|
||||
|
||||
console.log(ctx.locale);
|
||||
store.dispatch(setLocale(ctx.locale));
|
||||
|
||||
let loggedInUserIdent = thisSession.user.id;
|
||||
let loggedInUserEmail = thisSession.user.email;
|
||||
|
||||
|
||||
@@ -34,7 +34,7 @@ import {
|
||||
setAwaitingSubmissionDetails,
|
||||
setAwaitingSubmissionFromBlob,
|
||||
} from "../../store/awaitingSubmission/action";
|
||||
import { setShowReps } from "../../store/currentView/action";
|
||||
import { setShowReps, setLocale } from "../../store/currentView/action";
|
||||
import { setMyCases, setMyCasesDetails } from "../../store/myCases/action";
|
||||
import {
|
||||
setMyRepresentations,
|
||||
@@ -260,6 +260,8 @@ export const getServerSideProps = wrapper.getServerSideProps(
|
||||
|
||||
console.log("req locale :", ctx.locale);
|
||||
|
||||
store.dispatch(setLocale(ctx.locale));
|
||||
|
||||
const preferredLocale =
|
||||
accountDetails.pinswg_preferredlanguage == "846040000"
|
||||
? "cy"
|
||||
|
||||
Reference in New Issue
Block a user