Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
i18nexus-cli
Advanced tools
A command line interface for accessing translations from the i18nexus API
i18nexus is a translation management web application designed for use with i18next. Learn more with this 5 minute React walkthrough or visit our Quick Integration guide.
The primary motivation for this CLI is to ease i18nexus integration with SSR/SSG frameworks such as NextJS. It is the best way to integrate i18nexus with next-i18next.
npm install -g i18nexus-cli
i18nexus pull -k <YOUR_PROJECT_API_KEY>
The above snippet will download all of your latest translations to your current directory in the following structure:
.
└── public
└── locales
├── en
| └── common.json
└── de
└── common.json
This structure is i18next convention, and will work by default with next-i18next.
If you wish to download your files to a different directory, you can use the --path
option to specify your download destination. See all options below:
i18nexus pull
Option | Default value |
---|---|
--apiKey or -k | |
--path or -p | ./public/locales |
--ver or -v | latest |
--clean | false |
--apiKey
Your project API key (Can also be set using environment variable I18NEXUS_API_KEY
)
--path
The path to the destination folder in which translation files will be downloaded
--ver
The version of your project's translations to be downloaded (Can also be set using environment variable I18NEXUS_VERSION
)
--clean
Before download, clears your destination folder specified in --path. As a safety precaution, this only deletes folders with names that match a simple language code regex. You should still ensure you are not storing any files in your destination folder that you do not want deleted.
FAQs
Command line interface (CLI) for accessing the i18nexus API
The npm package i18nexus-cli receives a total of 3,685 weekly downloads. As such, i18nexus-cli popularity was classified as popular.
We found that i18nexus-cli demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
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.