Search code examples
internationalizationwebpackgettext

Webpack i18n with plurals


Is there any way to build properly webpack bundles with different languages, like i18n-webpack-plugin, but supporting plural forms? Something like gettext.

For example:

  • 1 girl - 1 dívka
  • 2 girls - 2 dívky
  • 10 girls - 10 dívek

Solution

  • You can try this library: https://www.npmjs.com/package/jed-webpack-plugin

    It helps you to make multiple bundles for each language.