Security News
Opengrep Emerges as Open Source Alternative Amid Semgrep Licensing Controversy
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
languages-js
Advanced tools
Version 2.2.x https://languages.js.org
Translation system in Javascript with the JSON format.
Follow the steps below to start:
Link
<script src="path/languages.min.js"></script>
CDN
<script src="https://unpkg.com/languages-js@latest/languages.min.js"></script>
NPM
npm install languages-js --save
Yarn
yarn add languages-js
Bower
bower install languages-js
const Languages = require('languages-js')
or ES6
import Languages from 'languages-js'
Languages.init(id, [path], [callback]);
id
format :
ISO-639 + _ + ISO-3166 Language Code + "_" + Country Code
Example :
- fr_FR
- en_EN
- en_US
If only ISO-639 (en, fr, jp, etc.) :
- fr : fr_FR
- en : en_EN
Example :
Languages.init(['fr_FR'], './languages/', () => {
// is loaded
});
If the type of id
is an array, language is the browser among the identifiers of the array. If it is not found in the array, the first element of the array will be the default language
t()
in the callback function :Languages.init(['fr_FR'], './languages/', () => {
'hello'.t() // Bonjour
});
MIT. Free for commercial use.
FAQs
Translation system in Javascript with the JSON format.
The npm package languages-js receives a total of 45 weekly downloads. As such, languages-js popularity was classified as not popular.
We found that languages-js 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
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.