dhii/wp-i18n

Internationalization for WP

v0.1.0 2018-11-23 16:47 UTC

This package is auto-updated.

Last update: 2024-12-07 15:27:26 UTC


README

Build Status Code Climate Test Coverage Latest Stable Version This package complies with Dhii standards

Internationalization for WP

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.