fix: newLocale fallback to 'en' locale (#11808)

This commit is contained in:
Alex van Andel authored and GitHub committed 2023-10-10 15:06:48 -07:00
1 parent 39c3ef0d94
commit 38f389bce9
1 file changed
+2 -1
+2 -1
View File
@@ -46,7 +46,8 @@ class MyDocument extends Document<Props> {
}
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 nonce = nonceParsed.success ? nonceParsed.data : "";