Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

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

  • 3.2.0
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

i18next-extract-gettext

No Maintenance Intended

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 23 Jul 2017

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

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc