Update coming soon banner text to use translation function (#47742)

* Update coming soon banner text to use translation function

* Add changefile(s) from automation for the following project(s): woocommerce

---------

Co-authored-by: github-actions <github-actions@github.com>
This commit is contained in:
Chi-Hsuan Huang 2024-05-24 10:51:07 +08:00 committed by GitHub
parent 36fa4f82ed
commit 433a0e19b2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 6 additions and 2 deletions

View File

@ -0,0 +1,4 @@
Significance: patch
Type: tweak
Update coming soon banner text to use translation function

View File

@ -47,7 +47,7 @@ if ( 'twentytwentyfour' === $current_theme ) {
<!-- wp:group {"layout":{"type":"flex","orientation":"vertical","justifyContent":"center"}} -->
<div class="wp-block-group"><!-- wp:heading {"textAlign":"center","level":1,"align":"wide","className":"woocommerce-coming-soon-banner","fontFamily":"<?php echo esc_html( $cardo_font_family ); ?>"} -->
<h1 class="wp-block-heading alignwide has-text-align-center woocommerce-coming-soon-banner has-<?php echo esc_html( $cardo_font_family ); ?>-font-family">Pardon our dust! We're working on something amazing check back soon!</h1>
<h1 class="wp-block-heading alignwide has-text-align-center woocommerce-coming-soon-banner has-<?php echo esc_html( $cardo_font_family ); ?>-font-family"><?php echo esc_html__( "Pardon our dust! We're working on something amazing — check back soon!", 'woocommerce' ); ?></h1>
<!-- /wp:heading --></div>
<!-- /wp:group -->

View File

@ -38,7 +38,7 @@ test.describe( 'Launch Your Store front end - logged out', () => {
await expect(
page.getByText(
'Pardon our dust! Were working on something amazing — check back soon!'
"Pardon our dust! We're working on something amazing — check back soon!"
)
).toBeVisible();
} );