Skip to content

Commit 3ed1ce5

Browse files
committed
feat: Provide GutenbergKit current locale
Enable localization within the editor.
1 parent c337f10 commit 3ed1ce5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

WordPress/Classes/ViewRelated/NewGutenberg/NewGutenbergViewController.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@ class NewGutenbergViewController: UIViewController, PostEditor, PublishingEditor
167167
conf.themeStyles = FeatureFlag.newGutenbergThemeStyles.enabled
168168
// Limited to Simple sites until application password auth is supported
169169
conf.plugins = RemoteFeatureFlag.newGutenbergPlugins.enabled() && post.blog.isHostedAtWPcom
170+
conf.locale = WordPressComLanguageDatabase().deviceLanguage.slug
170171

171172
if !post.blog.isSelfHosted {
172173
let siteType: String = post.blog.isHostedAtWPcom ? "simple" : "atomic"

0 commit comments

Comments
 (0)