Scan your whole stack
From OX Research Newsroom
Are you using @djangocfg/i18n?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v2.1.672
@djangocfg/i18n was last scanned on 1 Dec 2026 at version 2.1.672. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 2.1.672 LATEST | 1 Dec 2026 | No rules fired |
| 2.1.671 | 1 Dec 2026 | No rules fired |
| 2.1.669 | 30 Nov 2026 | No rules fired |
| 2.1.667 | 28 Nov 2026 | Not shown |
| 2.1.666 | 25 Nov 2026 | Not shown |
Findings for v2.1.672. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 2.1.672; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.

Lightweight, type-safe i18n library for @djangocfg packages.
pnpm add @djangocfg/i18n
import { I18nProvider, useT, ru } from '@djangocfg/i18n'
<I18nProvider locale="ru" translations={ru}>
<App />
</I18nProvider>
function MyComponent() {
const t = useT()
return <span>{t('ui.form.save')}</span>
}
// ✅ Server-safe (no React Context)
import { en, ru, ko } from '@djangocfg/i18n/locales'
import { mergeTranslations } from '@djangocfg/i18n/utils'
// ❌ Client-only (has React Context)
import { I18nProvider, useT } from '@djangocfg/i18n'
| Path | Description |
|---|---|
@djangocfg/i18n |
Full package (client components) |
@djangocfg/i18n/locales |
Locale data only (server-safe) |
@djangocfg/i18n/utils |
Utilities like mergeTranslations (server-safe) |
Widgets ship their own typed dictionaries and share one locale contract:
import { createCopy, type Locale } from '@djangocfg/i18n/copy'
const DICTIONARIES: Record<Locale, MyCopy> = { en, ru, /* ... */ 'pt-BR': ptBR }
export const useMyCopy = createCopy(DICTIONARIES).useCopy
See @docs/SELF_CONTAINED_COPY.md.
# Check missing keys across locales
pnpm i18n check
# List / search keys
pnpm i18n list
pnpm i18n list tour # filter by pattern
pnpm i18n list -v # with values
# Add key to all locales at once
pnpm i18n add "tools.new" '{"en":"New","ru":"Новый"}'
# Work with app locales in another directory
pnpm i18n check -d ../../apps/hub/i18n/locales
pnpm i18n list -d ../../apps/hub/i18n/locales
| Hook | Description |
|---|---|
useT() |
Returns translation function (recommended) |
useI18n() |
Full context: { t, locale, setLocale, translations } |
useLocale() |
Returns current locale string |
useTypedT<T>() |
Type-safe with compile-time key validation |
function MyComponent() {
const t = useT()
return <button>{t('ui.form.save')}</button>
}
function LocaleSwitcher() {
const { t, locale, setLocale } = useI18n()
return (
<select value={locale} onChange={(e) => setLocale(e.target.value)}>
<option value="en">English</option>
<option value="ru">Russian</option>
</select>
)
}
Override useTranslations in your app's global.d.ts to get compile-time key validation.
// global.d.ts
type _Messages = import('@djangocfg/i18n').I18nTranslations &
import('./i18n/locales/types').AppTranslations;
type _NSKeys = import('@djangocfg/i18n').NamespaceKeys<
_Messages,
import('@djangocfg/i18n').NestedKeyOf<_Messages>
>;
declare module 'next-intl' {
export function useTranslations<NS extends _NSKeys>(
namespace: NS,
): import('@djangocfg/i18n').IntlTranslator<_Messages, NS>;
}
// Spread merge (recommended for next-intl)
import { en as baseEn } from '@djangocfg/i18n/locales'
const messages = { ...baseEn, ...appEn }
// Deep merge with overrides
import { mergeTranslations, ru } from '@djangocfg/i18n'
const customRu = mergeTranslations(ru, {
ui: { select: { placeholder: 'Выберите...' } },
})
t('ui.pagination.showing', { from: 1, to: 10, total: 100 })
// => "1-10 of 100"
ui.* - UI components (select, form, dialog, table, pagination)
layouts.* - Layout components (sidebar, auth, profile, theme)
api.* - API/network messages
tools.* - Heavy tools (tour, upload, code, image)
Components using useT() fall back to English defaults when used outside a provider.
MIT
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.