fix: newLocale fallback to 'en' locale (#11808)
parent
39c3ef0d94
commit
38f389bce9
|
@ -46,7 +46,8 @@ class MyDocument extends Document<Props> {
|
||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
const { isEmbed, embedColorScheme, newLocale } = this.props;
|
const { isEmbed, embedColorScheme } = this.props;
|
||||||
|
const newLocale = this.props.newLocale || "en";
|
||||||
|
|
||||||
const nonceParsed = z.string().safeParse(this.props.nonce);
|
const nonceParsed = z.string().safeParse(this.props.nonce);
|
||||||
const nonce = nonceParsed.success ? nonceParsed.data : "";
|
const nonce = nonceParsed.success ? nonceParsed.data : "";
|
||||||
|
|
Loading…
Reference in New Issue