Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces improved support for language codes and fonts in the site, especially focusing on better handling of language attributes and locale formatting. It adds a new test suite for the HTML language plugin, updates the language selector to use more accurate HTML language tags, and ensures consistent font application for elements with a language attribute. It has the nature of reinforcing #3718.
Language attribute improvements:
_includes/language_selector.htmlto use more accuratelangattributes and proper HTML semantics, improving accessibility and internationalization.stylesheets/tailwind.cssto apply the default font to[lang]elements, fixing a font application issue that occurred when selecting CJK languages (Chinese, Japanese, Korean) and other languages. CJK languages are excluded as they already have dedicated font rules for their specialized typography requirements.Testing and build process:
Rakefileand included it in the main test task, ensuring the plugin is tested as part of the CI process. [1] [2]test/test_plugin_html_lang.rbto verify the behavior of theto_html_langfilter, including its integration with Liquid templates. This test code was generated using RubyMine's Junie. This facilitates maintenance.