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.
@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 3,906 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.
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.