Skip to content

Conversation

@yogeshbhutkar
Copy link
Contributor

@yogeshbhutkar yogeshbhutkar commented Dec 30, 2024

Part of: #64707
Tracker Comment: #64707 (comment)

What, Why & How?

This PR refactors the example attribute of block.json to support translatable text.

Testing Instructions

  1. Hover over the inserter and see the preview for the post navigation link block.

Screenshots

Screenshot 2024-12-30 at 10 30 42 AM
Screenshot 2024-12-30 at 10 30 46 AM

@yogeshbhutkar yogeshbhutkar marked this pull request as ready for review December 30, 2024 05:03
@github-actions
Copy link

github-actions bot commented Dec 30, 2024

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: yogeshbhutkar <yogeshbhutkar@git.wordpress.org>
Co-authored-by: t-hamano <wildworks@git.wordpress.org>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

@t-hamano t-hamano self-requested a review January 2, 2025 07:34
@t-hamano t-hamano added [Type] Bug An existing feature does not function as intended [Block] Navigation Link Affects the Navigation Link Block l10n Localization and translations best practices labels Jan 2, 2025
Copy link
Contributor

@t-hamano t-hamano left a comment

Choose a reason for hiding this comment

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

LGTM! I tested it in a Japanese environment and it is localized correctly.

Next Post:

image

Previous Post:

image

@t-hamano t-hamano added the props-bot Manually triggers Props Bot to ensure the list of props is up to date. label Jan 2, 2025
@github-actions github-actions bot removed the props-bot Manually triggers Props Bot to ensure the list of props is up to date. label Jan 2, 2025
@t-hamano t-hamano merged commit 1673ed8 into WordPress:trunk Jan 2, 2025
72 of 73 checks passed
@github-actions github-actions bot added this to the Gutenberg 20.0 milestone Jan 2, 2025
bph pushed a commit to bph/gutenberg that referenced this pull request Jan 8, 2025
…nk` (WordPress#68375)

* i18n: make example and variations translatable in `post-navigation-link`

* i18n: update label translation in `post-navigation-link` block

Co-authored-by: yogeshbhutkar <yogeshbhutkar@git.wordpress.org>
Co-authored-by: t-hamano <wildworks@git.wordpress.org>
Gulamdastgir-Momin pushed a commit to Gulamdastgir-Momin/gutenberg that referenced this pull request Jan 23, 2025
…nk` (WordPress#68375)

* i18n: make example and variations translatable in `post-navigation-link`

* i18n: update label translation in `post-navigation-link` block

Co-authored-by: yogeshbhutkar <yogeshbhutkar@git.wordpress.org>
Co-authored-by: t-hamano <wildworks@git.wordpress.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Block] Navigation Link Affects the Navigation Link Block l10n Localization and translations best practices [Type] Bug An existing feature does not function as intended

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants