Skip to content

Latest commit

 

History

History
21 lines (16 loc) · 1.28 KB

README.md

File metadata and controls

21 lines (16 loc) · 1.28 KB

WP I18n

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.