Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
gulp-i18n-ui5
Advanced tools
The plugin is used for simplify work with translations in OpenUI5 or SAPUI5 framework. The plugin searches views and source code of project in OpenUI5 or SAPUI5 framework for translation tokens and automatically update translation file used by the framew
The plugin is used for simplify work with translations in OpenUI5 or SAPUI5 framework. The plugin searches views and source code of project in OpenUI5 or SAPUI5 framework for translation tokens and automatically update translation file used by the framework.
The plugin searches patterns:
in default configuration. Then activate/deactivate/add messages in/to
i18n.properties
file which is used for the translations.
npm install gulp-18n-ui5
Just import plugin to gulp file and use it.
const i18n = require("gulp-i18n-ui5");
var translationFiles = ["webapp/**/*.js", "webapp/manifest.json", "webapp/**/*.xml"];
gulp.task("i18n", function() {
return gulp.src(translationFiles)
.pipe(i18n("webapp/lang/i18n.properties"))
.pipe(gulp.dest("./"));
});
Example with advanced configuration
const i18n = require("gulp-i18n-ui5");
var configuration = {
patterns: [{
fileExtensions: ["xml", "html"],
pattern: "\\{i18n>([^}]+)\\}"
}, {
fileExtensions: ["json"],
pattern: "\\{\\{([^}]+)\\}\\}"
}, {
fileExtensions: ["js"],
pattern: "(?:getText|__)\\([\"']([^\"']+)[\"']"
}],
output: {
fileName: "webapp/i18n/i18n.properties",
pattern: /^(#*)([^= ]+) *= *(.*)/
},
noDeactivateTokens: []
};
var translationFiles = ["webapp/**/*.js", "webapp/manifest.json", "webapp/**/*.xml"];
gulp.task("i18n", function() {
return gulp.src(translationFiles)
.pipe(i18n("webapp/lang/i18n.properties"))
.pipe(gulp.dest("./"));
});
FAQs
The plugin is used for simplify work with translations in OpenUI5 or SAPUI5 framework. The plugin searches views and source code of project in OpenUI5 or SAPUI5 framework for translation tokens and automatically update translation file used by the framew
The npm package gulp-i18n-ui5 receives a total of 3 weekly downloads. As such, gulp-i18n-ui5 popularity was classified as not popular.
We found that gulp-i18n-ui5 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
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.