Skip to content

Commit

Permalink
Rosetta CSS: Load stylesheet based on locale.
Browse files Browse the repository at this point in the history
This enables the stylesheet to be loaded on a local environment by switching the test site's locale.

See #380 (comment)
  • Loading branch information
ryelle committed Jan 18, 2024
1 parent 69cb94d commit ecacf4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/wp-content/themes/wporg-main-2022/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ function enqueue_assets() {
}
}

if ( is_rosetta_site() ) {
if ( get_locale() !== 'en_US' ) {
wp_enqueue_style(
'wporg-main-2022-rosetta-style',
get_stylesheet_directory_uri() . '/build/rosetta/style-index.css',
Expand Down

0 comments on commit ecacf4f

Please sign in to comment.