String localization guidelines
- Use
woocommerce
textdomain in all strings. - When using dynamic strings in printf/sprintf, if you are replacing > 1 string use numbered args. e.g.
Test %s string %s.
would beTest %1$s string %2$s.
- Use sentence case. e.g.
Some Thing
should beSome thing
. - Avoid HTML. If needed, insert the HTML using sprintf.
For more information, see WP core document i18n for WordPress Developers.
Last updated: January 18, 2024