-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add mechanism to translate custom page templates #28783
Conversation
whether they are unknow keys or numeric.
34d04dd
to
09a447a
Compare
Size Change: 0 B Total Size: 1.37 MB ℹ️ View Unchanged
|
I've explored an alternative way to translate fields in |
I'm going to close this as there's an alternative PR at #29828 that addresses this issue. |
#27778 introduced a new field in the
theme.json
file, thepageTemplates
to declare custom page templates to be shown to the user in places like:#28700 integrated the processing of that field into the
WP_Theme_JSON
/WP_Theme_JSON_Resolver
classes. This is the next step of that integration: make it translatable.Changes:
experimental-i18n-theme.json
, so wp-cli can understand what needs to be translated.WP_Theme_JSON_Resolver
to retrieve the translated version of this field.