Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@djangocfg/i18n

Latest version: v2.1.672

Overview

Last scanned
1 Dec 2026
Published
1 Dec 2026
npm package Publisher: markolofsen
23 Stars
1 Forks
139 Versions
20.8K Downloads
TypeScript Repo language

Scan summary

@djangocfg/i18n was last scanned on 1 Dec 2026 at version 2.1.672. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 139 versions; the latest 5 were published within 7 days (25 Nov – 1 Dec 2026).
  • Findings: No rules fired in version 2.1.672.
  • Downloads: 20,837 downloads.

Versions

139 versions published
Versions and the rules that fired in each
VersionPublishedStatus
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

No rules fired in 2.1.672

Findings

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.

README

The publisher’s own README, as collected from the registry.

@djangocfg/i18n

@djangocfg/i18n

Lightweight, type-safe i18n library for @djangocfg packages.

Features

  • 17 languages — en, ru, ko, ja, de, fr, zh, it, es, nl, ar, tr, pt-BR, pl, sv, no, da
  • Type-safe — Full TypeScript support with autocomplete
  • CLI included — Manage locales from the terminal
  • Works standalone — Components work without provider

Installation

pnpm add @djangocfg/i18n

Quick Start

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>
}

Subpath Imports (Server Components)

// ✅ 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)

Self-contained copy

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.

CLI

# 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

Hooks

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
useT()
function MyComponent() {
  const t = useT()
  return <button>{t('ui.form.save')}</button>
}
useI18n()
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>
  )
}

Type-safe next-intl Integration

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>;
}

Extending Translations

// 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: 'Выберите...' } },
})

Interpolation

t('ui.pagination.showing', { from: 1, to: 10, total: 100 })
// => "1-10 of 100"

Translation Key Paths

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)

Works Without Provider

Components using useT() fall back to English defaults when used outside a provider.

License

MIT

OX Radar and Response Center

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.

Where it’s listed

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).

  • npm @djangocfg/i18n

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Cry2Wolf: How to Tell a Real Bug from a Nothingburger
AI & VibeSec

Cry2Wolf: Not Every Branded Bug Deserves a Fire Drill

PolinRider Returns
Research

PolinRider Returns: Hijacked npm Packages Use Ethereum Blockchain to Conceal Malware Infrastructure

Vulnerability Insights

OpenSSH Password Authentication Bypass on Alpine Linux (*sshole) – CVE-2026-123158

Frame 2085668439 (1)
Group 1261154229