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.
@tolgee/i18next
Advanced tools
Tolgee i18next integration. For more information about Tolgee Toolkit, visit our documentation website tolgee.io.
npm install i18next @tolgee/i18next
First, create a Tolgee instance and initialize it.
import i18next from 'i18next';
import { withTolgee } from "@tolgee/i18next";
withTolgee(i18n, { ... tolgee config ... })
.init({ ... i18next config ... })
This will:
tolgeeBackend
as backend plugintolgeeProcessor
for wrapping translations (with invivisible wrapperMode)tolgeeApply
on i18n instance to apply listeners and register tolgee (i18n.tolgee
).init
function with custom function, which will use tolgeeOptions
to merge config with our custom config that is needed for in-context to workWe also recommend using ICU message format
, which is supported by Tolgee platform.
npm install i18next-icu
import ICU from 'i18next-icu';
withTolgee(i18n, ...)
.use(ICU)
.init(...)
Tolgee will automatically switch language accordingly to i18next. So to get current language do:
const lang = i18n.lang;
To set language:
i18n.changeLanguage(lang);
To learn more, check Tolgee docs.
FAQs
Tolgee i18n integration.
The npm package @tolgee/i18next receives a total of 4,115 weekly downloads. As such, @tolgee/i18next popularity was classified as popular.
We found that @tolgee/i18next 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.