
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
translatejson
Advanced tools
Translation and translation management system using json files
npm install --save translatejson
Create a local folder at the root of your project (or at another location but don't forget to configure it) Then create a en.json, fr.json and other xx.json file
Initialize the class
Parameters
Examples
const translatejson = require("../index")
let Translate = new translatejson("fr", "./resources/locales/");
Select the line defined by the key
Parameters
Examples
Translate.GetLine("hello");
Translate.GetLine("hello users", "deathart");
Returns string
Select block defined by the key
Parameters
Examples
Translate.GetBlock("block.first_block");
Translate.GetBlock("block.sec_block", "deathart");
Returns string
Add a key to the json file
Parameters
Examples
Translate.SetLine("good bye", "Good Bye");
Returns boolean
Update a key in the json file
Parameters
Examples
Translate.Update("hello", "Bonjour");
Returns boolean
Deletes a key in the json file
Parameters
key string Key nameExamples
Translate.Del("hello");
Returns boolean
finds a key in the json file
Parameters
key string Key nameExamples
Translate.resolve("hello");
Translate.resolve("block.first_bloc");
npm test
Don't hesitate to help this project, to improve it to make it grow, even constructive criticism helps.
FAQs
Translate node APP JSON
We found that translatejson 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.