- Increase the minimum required Node.js version to v18.12.0 matching long-term support releases (#31270). Learn more about Node.js releases.
- Add new
addLocaleData
method to merge locale data into the Tannin instance by domain.
- Drop support for Internet Explorer 11 (#31110). Learn more at https://make.wordpress.org/core/2021/04/22/ie-11-support-phase-out-plan/.
- Increase the minimum Node.js version to v12 matching Long Term Support releases (#31270). Learn more at https://nodejs.org/en/about/releases/.
- Add new
resetLocaleData
method to reset the existing Tannin locale data.
- Export the default
I18n
instance asdefaultI18n
, in addition to already exported bound methods. - Add new
getLocaleData
method to get the internal Tannin locale data object. - Add new
subscribe
method to subscribe to changes in the internal locale data. - Add new
hasTranslation
method to determine whether a translation for a string is available.
- Improve type declarations for translation functions (#26171)
- Relax type of
sprintf
arguments type (#21919)
- Include TypeScript type declarations (#18942)
- Add
createI18n
method to allow creation of multiple i18n instances (#21182)
- Add
isRTL
function (#20298)
- The module has been internally refactored to use Tannin in place of Jed. This has no impact on the public interface of the module, but should come with considerable benefit to performance, memory usage, and bundle size.
getI18n
has been removed. Use__
,_x
,_n
, or_nx
instead.dcnpgettext
has been removed. Use__
,_x
,_n
, or_nx
instead.
- The initialization of the internal Jed instance now correctly assigns its default data.
- Change how required built-ins are polyfilled with Babel 7 (#9171). If you're using an environment that has limited or no support for ES2015+ such as lower versions of IE then using core-js or @babel/polyfill will add support for these methods.
- Updated build to work with Babel 7 (#7832)
- Moved
@WordPress/packages
repository to@WordPress/gutenberg
(#7805)
- Fix: Standardized
package.json
format (#119)