Security News
RubyGems.org Adds New Maintainer Role
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
@frc/laravel-mix-wp-translate
Advanced tools
Laravel Mix extension to translate WordPress themes
If you are getting weird errors like:
Warning: Failed to set locale category LC_NUMERIC to en_FI.
Warning: Failed to set locale category LC_TIME to en_FI.
Warning: Failed to set locale category LC_COLLATE to en_FI.
Warning: Failed to set locale category LC_MONETARY to en_FI.
Warning: Failed to set locale category LC_MESSAGES to en_FI.
You need to set LC_ALL
(I used en_US.UTF-8
):
# Bash -> ~/.bash_profile
# Zsh (Z shell) -> ~/.zshrc
export LC_ALL=en_US.UTF-8
const mix = require( 'laravel-mix' );
require('laravel-mix-wp-translate');
const themes = ['frc-theme']; //folder name(s)
const languages = ['fi', 'sv_SE']; // language(s)
const options = {
basePath: '/themes' //path to themes folder from content root path, default is '/themes'
};
// Heroku does not have msgmerge and/or msgfmt available hence..
if ( !mix.inProduction() ) {
mix
// creates pot file to `${options.basePath}/themes[]/languages/themes[].pot`
// from files in `${options.basePath}/themes[]/**/*.php`
// options is not required
// uses wp cli so you should have that
.pot(themes, options)
// creates `${options.basePath}/themes[]/languages/${languages[]}.po` files
// from `${options.basePath}/themes[]/languages/themes[].pot` file
// options is not required
// uses msgmerge so you should have that
.pot2po(themes, languages, options)
// creates `${options.basePath}/themes[]/languages/${languages[]}.mo` files
// from `${options.basePath}/themes[]/languages/*.po`
// options is not required
// uses msgfmt so you should have that
.po2mo(themes, options);
}
PRs welcomed.
FAQs
Laravel Mix extension to translate WordPress themes
The npm package @frc/laravel-mix-wp-translate receives a total of 6 weekly downloads. As such, @frc/laravel-mix-wp-translate popularity was classified as not popular.
We found that @frc/laravel-mix-wp-translate demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers 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
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.
Security News
Research
Socket's threat research team has detected five malicious npm packages targeting Roblox developers, deploying malware to steal credentials and personal data.