Skip to content

App Intents: extract localizable strings from code at code freeze#25766

Open
crazytonyli wants to merge 1 commit into
trunkfrom
task/new-siri-integration-simplify-localization
Open

App Intents: extract localizable strings from code at code freeze#25766
crazytonyli wants to merge 1 commit into
trunkfrom
task/new-siri-integration-simplify-localization

Conversation

@crazytonyli

@crazytonyli crazytonyli commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

Description

Relates to #25753.

The deleted Localizable.strings files were added in #25753. They were added because, on iOS 17, the App Intents strings looks up the strings tables in the extension bundle, not the app bundle. But from iOS 18, they can look up from the app bundle. This discrepancy is validated on simulators. I'm not sure if that's the case on real devices too. I don't have an iOS 17 device.

This PR simplified the localizable strings, by dropping the strings tables in the extension bundle (again, which is newly added in #25753). That means iOS 17 don't get the translated strings. I think this is an okay compromise, because we don't have many users on iOS 17 and we are going to drop it in two months.

To make sure the App Intents strings (used via LocalizedStringResource) are translated, the code freeze now extracts the LocalizedStringResource call sites with xcstringstool (genstrings cannot parse them) and merges them into the GlotPress upload.

@dangermattic

dangermattic commented Jul 9, 2026

Copy link
Copy Markdown
Collaborator
1 Warning
⚠️ Translation files *.lproj/Localizable.strings should only be updated on a release branch.

Generated by 🚫 Danger

@wpmobilebot

wpmobilebot commented Jul 9, 2026

Copy link
Copy Markdown
Contributor
App Icon📲 You can test the changes from this Pull Request in WordPress by scanning the QR code below to install the corresponding build.
App NameWordPress
ConfigurationRelease-Alpha
Build Number33324
VersionPR #25766
Bundle IDorg.wordpress.alpha
Commit5778339
Installation URL66cp8br8u0jvg
Automatticians: You can use our internal self-serve MC tool to give yourself access to those builds if needed.

@wpmobilebot

wpmobilebot commented Jul 9, 2026

Copy link
Copy Markdown
Contributor
App Icon📲 You can test the changes from this Pull Request in Jetpack by scanning the QR code below to install the corresponding build.
App NameJetpack
ConfigurationRelease-Alpha
Build Number33324
VersionPR #25766
Bundle IDcom.jetpack.alpha
Commit5778339
Installation URL0ri26u720ht98
Automatticians: You can use our internal self-serve MC tool to give yourself access to those builds if needed.

@crazytonyli
crazytonyli requested review from jkmassel and mokagio July 9, 2026 02:19
@crazytonyli crazytonyli added this to the 27.1 milestone Jul 9, 2026
@crazytonyli
crazytonyli marked this pull request as ready for review July 9, 2026 02:19
@crazytonyli
crazytonyli requested a review from a team as a code owner July 9, 2026 02:20

@mokagio mokagio left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

According to Opus 4.8, there might be an issue in the implementation. See #25805

@wpmobilebot wpmobilebot modified the milestones: 27.1, 27.2 Jul 21, 2026
@wpmobilebot

Copy link
Copy Markdown
Contributor

Version 27.1 has now entered code-freeze, so the milestone of this PR has been updated to 27.2.

iOS 18 and later resolve the widget configuration UI's App Intents strings against the app bundle, whose GlotPress-managed Localizable.strings already carries the ios-widget. keys in every locale, so the static copies in the extension bundle only served iOS 17 (verified on 17.5/18.6/26.5 simulators, including that iOS 17 has no fallback to the app bundle). The iOS 17 user base no longer justifies maintaining 34 hand-refreshed translation snapshots, so its widget configuration UI now shows the English defaults.
@crazytonyli

Copy link
Copy Markdown
Contributor Author

@mokagio Thanks for the review!

I decided to go with another direction. Keep the existing translations (there is only a couple), and reusing the WIP plural support translation pipeline (when its ready) for the new App Intents strings.

With this direction, the existing apps work as it is, as long as we don't delete the existing translations. But we won't be able to translate new App Intents strings, until the plural support translation pipeline is ready.

Again, this is for simplicity's sake.

@crazytonyli
crazytonyli force-pushed the task/new-siri-integration-simplify-localization branch from d523a8f to 5778339 Compare July 22, 2026 05:55
@crazytonyli
crazytonyli requested a review from mokagio July 22, 2026 05:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants