Security News
Research
Supply Chain Attack on Rspack npm Packages Injects Cryptojacking Malware
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
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("./"));
});
If you use external translations and You need just ignore some tokens
in the translation file Append #
character to the end of the line.
#XTIT
INITIAL=Initial
#XTIT
#EMAIL=Email #Ignore
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 0 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
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.
Security News
Sonar’s acquisition of Tidelift highlights a growing industry shift toward sustainable open source funding, addressing maintainer burnout and critical software dependencies.