From 4c2b6b2b4cc4dba4511ea4ea3a9cb84a23e79ab4 Mon Sep 17 00:00:00 2001 From: Tugdual de Kerviler Date: Thu, 2 Apr 2020 11:02:03 +0200 Subject: [PATCH] Revert locale test --- packages/react-native-editor/src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-native-editor/src/index.js b/packages/react-native-editor/src/index.js index c9e740b1671d7..35a1b26f70cce 100644 --- a/packages/react-native-editor/src/index.js +++ b/packages/react-native-editor/src/index.js @@ -51,7 +51,7 @@ const setupInitHooks = () => { wpHooks.doAction( 'native.setup-init-hooks' ); wpHooks.addAction( 'native.render', 'core/react-native-editor', ( props ) => { - setupLocale( 'fr', props.translations ); + setupLocale( props.locale, props.translations ); } ); // Map native props to Editor props