Conventional WordPress means of i18n prevent us from writing good code. What this package solves:
- Use Dependency Injection, and avoid global state.
- De-couple your code from the global
__()
function, and thus from WP itself. - Remove the duplicate hard-coded text domain; instead, centralize it, and de-couple consuming logic from it.
- Use a standards-compliant mechanism, while continuig to use the same familiar gettext tools, like Poedit.
- Make your code more testable.
For more information about the how and why, please see the Wiki documentation.