Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
wordpress-block-editor-po-to-json
Advanced tools
Readme
Generate Wordpress Gutenberg block editor compatible JED1.x JSON file from the PO files.
This package will come in handy, if you have multiple JS files in the block editor and the wp-cli ends up making multiple JSON files with md5 handles.
This package is a utility tool for generating Wordpress Gutenberg block editor translations and is built on top of the po2json npm package.
languages
folder in the root of your Gutenberg block.wp-cli
to generate the .pot
and .po
files or add in your .po
files manually.
Your .po
files should be of the format {domain}-{locale}.po
, where domain
is the language domain used to mark the translatable text [__('some text','mydomain')
] in the project. Example mydomain-fr_FR.po
.
For more detailed instructions refer Wordpress block editor internationlizationwp-cli
, if you have multiple JS files in the block.npm install --save wordpress-block-editor-po-to-json
.'wpbepo2json -lf languages -wjh wp-blockjs-handle
"scripts" : {
"build-translation-json" : "wpbepo2json -lf languages -wjh wp-blockjs-handle"
}
where -lf
is the path to the language folder language
and -wjh
is the Wordpress javascript handle used for the blocks compiled js
file during the wp_enqueue_script
or wp_register_script
.
npm run build-translation-json
.wp_set_script_translations()
function after the wp_enqueue_script
or wp_register_script
.
Refer wp_set_script_translations for more information.In progress.
FAQs
Generate JED1.x compatible json files from po files for use in Wordpress Gutenberg block translations and internationalization.
The npm package wordpress-block-editor-po-to-json receives a total of 1 weekly downloads. As such, wordpress-block-editor-po-to-json popularity was classified as not popular.
We found that wordpress-block-editor-po-to-json demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.