Launch offer
Business website $150 USD Custom plugin $200 USD Ready in 5 days
Get a quote
WordPress Plugin Development

Internationalization (i18n)

Use __, _e, esc_html__, _n, and related helpers for i18n-ready plugins.

Internationalization (i18n) — a practical guide to WordPress i18n with clear examples you can reuse in real projects.

WordPress Plugin Development Series (67/95). Prefer one article? Read the complete WordPress plugin development tutorial.

Short description

Internationalization prepares strings for translation. Localization applies a language.

i18n helpers

esc_html_e('Dashboard', 'acme-tools');
printf(
    esc_html(_n('%d item', '%d items', $count, 'acme-tools')),
    (int) $count
);

Leave a reply

Your email address will not be published. Required fields are marked *