Socket
Socket
Sign inDemoInstall

i18next-extract-gettext

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

i18next-extract-gettext

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


Version published
Weekly downloads
15
increased by66.67%
Maintainers
1
Weekly downloads
 
Created

Readme

Source

:boom: 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. :boom:


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 ""

Keywords

FAQs

Package last updated on 03 Oct 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc