Skip to content

Commit 359a6f9

Browse files
authored
feat: GutenbergKit internationalization (#24515)
* feat: Provide GutenbergKit current locale Enable localization within the editor. * build: Update GutenbergKit version * build: Update GutenbergKit version * build: Update GutenbergKit version * build: Update GutenbergKit version * build: Update GutenbergKit version * build: Update GutenbergKit version * build: Update GutenbergKit version
1 parent 5e37384 commit 359a6f9

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Modules/Package.resolved

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Modules/Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ let package = Package(
5555
.package(url: "https://github.com/zendesk/support_sdk_ios", from: "8.0.3"),
5656
// We can't use wordpress-rs branches nor commits here. Only tags work.
5757
.package(url: "https://github.com/Automattic/wordpress-rs", revision: "alpha-20250505"),
58-
.package(url: "https://github.com/wordpress-mobile/GutenbergKit", from: "0.2.0"),
58+
.package(url: "https://github.com/wordpress-mobile/GutenbergKit", revision: "fdfe788530bbff864ce7147b5a68608d7025e078"),
5959
.package(
6060
url: "https://github.com/Automattic/color-studio",
6161
revision: "bf141adc75e2769eb469a3e095bdc93dc30be8de"

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)