With the introduction of vite
as our JS bundler, we added a "universal plugin" called PO Gettext plugin to read gettext translations files (.po
) and turn them into JSON. This plugin is built with unplugin which allows us to use it for both vite and webpack.
We should replace our custom easygettext-loader
by PO Gettext plugin, so that we have only one way of loading PO files regardless of the JS bundler.