From b331cc6373a715a022e92405bb2082dee961a8c6 Mon Sep 17 00:00:00 2001 From: Manoj Bahuguna Date: Fri, 8 Oct 2021 17:05:45 +0530 Subject: [PATCH] fix(i18n): fixes that preview not changing with locale (#5875) --- .../src/components/Editor/EditorControlPane/EditorControlPane.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/netlify-cms-core/src/components/Editor/EditorControlPane/EditorControlPane.js b/packages/netlify-cms-core/src/components/Editor/EditorControlPane/EditorControlPane.js index aafe394b..af3feb8d 100644 --- a/packages/netlify-cms-core/src/components/Editor/EditorControlPane/EditorControlPane.js +++ b/packages/netlify-cms-core/src/components/Editor/EditorControlPane/EditorControlPane.js @@ -110,6 +110,7 @@ export default class ControlPane extends React.Component { handleLocaleChange = val => { this.setState({ selectedLocale: val }); + this.props.onLocaleChange(val); }; validate = async () => {