Skip to content

queicherius/i18next-extract-gettext

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 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-extract-gettext

A CLI tool for extracting a gettext POT file from multiple JS source files using i18next, including react-i18next

Install

npm install i18next-extract-gettext

Usage

# Go through all the files specified, extract all translation keys 
# (including from the react helper) and put them in the templates file
i18next-extract-gettext --files='./src/**/*.+(js|json)' --output=templates.pot

Example

Input (JS)

// ...
t('Hello World')
// ...

Output (POT)

msgid "Hello World"
msgstr ""

About

A CLI tool for extracting a gettext POT file from multiple JS source files using i18next

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •