Skip to content

Load gettext PO files as i18next format directly in webpack

License

Notifications You must be signed in to change notification settings

queicherius/i18next-po-loader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

💥 Careful: This package is no longer maintained and is only here for historic reasons. This means you should very likely not use it. You have been warned. 💥


i18next-po-loader

Load gettext PO files as i18next format directly in webpack

Install

npm install i18next-po-loader --save-dev

Webpack config

{
  test: /\.po$/, 
  loaders: ['i18next-po-loader']
}

Usage

i18next.init({
  nsSeparator: false,
  keySeparator: false,
  lng: 'en',
  resources: {
    de: {translation: require('./translations/de.po')}
  }
})

About

Load gettext PO files as i18next format directly in webpack

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published