Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@automattic/wp-babel-makepot

Package Overview
Dependencies
Maintainers
47
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@automattic/wp-babel-makepot

A utility for extracting translatable strings from JavaScript source.

latest
Source
npmnpm
Version
1.2.0
Version published
Weekly downloads
346
-30.66%
Maintainers
47
Weekly downloads
 
Created
Source

wp-babel-makepot

A utility for extracting translatable strings from JavaScript source.

Using the CLI

wp-babel-makepot "<input_files>" -i "<ignore_patterns>" -b "<base_dir>" -d "<output_segments_dir>" -o "<output_file>" -p <babel_preset>

Example: wp-babel-makepot "./src/**/*.{js,jsx,ts,tsx}" -i "**/*.d.ts" -b "./src" -d "./build" -o "./build/bundle-strings.pot"

Docker:

docker run --init -it -v ~/path/to/source/files:/src -v ~/path/to/output:/build wp-babel-makepot

Develop

Locally (without docker)

yarn install
yarn run start "some/src/**/*.js{,x}" -- --ignore "**/node_modules/**,**/*.spec.js,**/*.test.js" --output "./strings.pot"

With Docker

docker build -t wp-babel-makepot .
docker run --init -it -v ~/path/to/source/files:/src -v ~/path/to/output:/build wp-babel-makepot

Keywords

makepot

FAQs

Package last updated on 12 Feb 2024

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