
Research
Supply Chain Attack on Axios Pulls Malicious Dependency from npm
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.
@sucoza/i18n-devtools-plugin
Advanced tools
Internationalization (i18n) inspector plugin for TanStack DevTools with translation management and missing key detection
A comprehensive internationalization debugging plugin for TanStack DevTools that provides real-time translation key tracking, missing key detection, language coverage analysis, formatting preview, bundle size optimization, and layout testing for multilingual React applications.
npm install @sucoza/i18n-devtools-plugin
import React from 'react';
import { I18nDevToolsPanel } from '@sucoza/i18n-devtools-plugin';
function App() {
return (
<div>
{/* Your app content */}
{/* i18n DevTools Panel */}
<I18nDevToolsPanel />
</div>
);
}
import React, { useEffect } from 'react';
import {
I18nDevToolsPanel,
createI18nEventClient
} from '@sucoza/i18n-devtools-plugin';
function App() {
useEffect(() => {
// Initialize the i18n event client
const client = createI18nEventClient();
// Optional: Listen for i18n events
const unsubscribe = client.subscribe((event, type) => {
if (type === 'i18n:missing-key') {
console.log('Missing translation key detected:', event);
}
if (type === 'i18n:language-change') {
console.log('Language changed:', event);
}
if (type === 'i18n:translation-updated') {
console.log('Translation updated:', event);
}
});
return unsubscribe;
}, []);
return (
<div>
<I18nDevToolsPanel />
</div>
);
}
import React from 'react';
import { I18nDevToolsPanel, ReactI18nextAdapter } from '@sucoza/i18n-devtools-plugin';
import { useTranslation } from 'react-i18next';
function App() {
const { i18n } = useTranslation();
return (
<div>
<I18nDevToolsPanel
adapter={new ReactI18nextAdapter(i18n)}
/>
</div>
);
}
import React from 'react';
import { useI18nDevTools } from '@sucoza/i18n-devtools-plugin';
function MyComponent() {
const {
currentLanguage,
availableLanguages,
missingKeys,
translationKeys,
performanceMetrics,
changeLanguage,
updateTranslation,
addTranslationKey,
analyzeBundle,
testLayout
} = useI18nDevTools();
return (
<div>
<div>
<h3>i18n Status</h3>
<p>Current Language: {currentLanguage}</p>
<p>Available Languages: {availableLanguages.length}</p>
<p>Missing Keys: {missingKeys.length}</p>
<p>Cache Hit Rate: {(performanceMetrics.cacheHitRate * 100).toFixed(1)}%</p>
</div>
<div>
<h3>Language Switcher</h3>
{availableLanguages.map(lang => (
<button
key={lang.code}
onClick={() => changeLanguage(lang.code)}
className={lang.code === currentLanguage ? 'active' : ''}
>
{lang.name} ({lang.completeness}%)
</button>
))}
</div>
{missingKeys.length > 0 && (
<div>
<h3>Missing Translation Keys</h3>
{missingKeys.slice(0, 10).map(key => (
<div key={key.key}>
<p><strong>{key.namespace}:{key.key}</strong></p>
<p>Used in: {key.usedAt.join(', ')}</p>
<button onClick={() => updateTranslation(key.namespace, key.key, 'TODO: Add translation')}>
Add Translation
</button>
</div>
))}
</div>
)}
</div>
);
}
import { ReactI18nextAdapter } from '@sucoza/i18n-devtools-plugin';
import i18n from './i18n'; // Your i18next configuration
function MyComponent() {
const adapter = new ReactI18nextAdapter(i18n, {
trackUsage: true,
detectMissingKeys: true,
enablePerformanceMonitoring: true,
enableBundleAnalysis: true,
});
return (
<I18nDevToolsPanel adapter={adapter} />
);
}
import { useI18nDevTools } from '@sucoza/i18n-devtools-plugin';
function MyComponent() {
const { updateAnalysisOptions } = useI18nDevTools();
// Configure analysis behavior
updateAnalysisOptions({
trackKeyUsage: true,
detectMissingKeys: true,
analyzeBundleSize: true,
enablePerformanceMetrics: true,
enableLayoutTesting: true,
maxKeysToTrack: 1000,
bundleAnalysisInterval: 30000, // 30 seconds
});
}
import { useI18nDevTools } from '@sucoza/i18n-devtools-plugin';
function MyComponent() {
const { updateTestingOptions } = useI18nDevTools();
// Configure layout testing
updateTestingOptions({
testLanguages: ['en', 'ar', 'de', 'ja'], // Languages to test
enableRTLTesting: true,
enableOverflowDetection: true,
enableTruncationDetection: true,
captureScreenshots: true,
testViewports: ['mobile', 'tablet', 'desktop'],
});
}
The main panel component that provides the complete i18n debugging interface with multiple tabs.
You can also use individual components for specific functionality:
KeyExplorer - Translation key browser and search interfaceLanguageSwitcher - Language selection and switching controlsMissingKeysPanel - Missing translation detection and managementTranslationEditor - In-browser translation editing interfaceCoverageVisualization - Translation coverage charts and statisticsFormatPreview - Date, number, and currency formatting previewBundleAnalyzer - Translation bundle size analysisLayoutTester - Cross-language layout testing interfacePerformanceMetrics - i18n performance monitoring dashboardinterface TranslationKey {
key: string;
namespace: string;
defaultValue?: string;
interpolation?: Record<string, any>;
count?: number;
context?: string;
usedAt: string[];
lastUsed: number;
}
interface LanguageInfo {
code: string;
name: string;
nativeName: string;
isRTL: boolean;
completeness: number;
totalKeys: number;
translatedKeys: number;
missingKeys: string[];
isDefault?: boolean;
isActive?: boolean;
}
interface I18nState {
currentLanguage: string;
fallbackLanguage: string;
availableLanguages: LanguageInfo[];
namespaces: NamespaceInfo[];
translations: Translation[];
translationKeys: TranslationKey[];
missingKeys: TranslationKey[];
isLoading: boolean;
lastUpdated: number;
}
interface I18nPerformanceMetrics {
initTime: number;
translationTime: number;
bundleLoadTime: Record<string, number>;
memoryUsage: number;
cacheHitRate: number;
missedTranslationsCount: number;
averageKeyLookupTime: number;
}
interface I18nEvents {
'i18n:state': I18nState;
'i18n:language-change': { from: string; to: string; timestamp: number };
'i18n:missing-key': { key: TranslationKey; component: string };
'i18n:translation-updated': { namespace: string; key: string; value: string };
'i18n:key-usage': { key: TranslationKey; component: string };
'i18n:bundle-loaded': { namespace: string; size: number; loadTime: number };
'i18n:performance-metrics': I18nPerformanceMetrics;
'i18n:layout-test': { language: string; results: LayoutTestResult[] };
}
interface I18nAdapter {
getCurrentLanguage(): string;
getAvailableLanguages(): LanguageInfo[];
changeLanguage(language: string): Promise<void>;
getTranslation(namespace: string, key: string): string | undefined;
updateTranslation(namespace: string, key: string, value: string): void;
getNamespaces(): NamespaceInfo[];
trackKeyUsage(key: TranslationKey, component: string): void;
getPerformanceMetrics(): I18nPerformanceMetrics;
}
class ReactI18nextAdapter implements I18nAdapter {
constructor(i18nInstance: i18n, options?: AdapterOptions);
// Implementation methods...
}
Check out the example/ directory for a complete demonstration of the plugin with various i18n configurations and testing scenarios.
To run the example:
cd example
npm install
npm run dev
The example includes:
git checkout -b feature/amazing-feature)git commit -m 'Add some amazing feature')git push origin feature/amazing-feature)MIT
Part of the @sucoza TanStack DevTools ecosystem.
FAQs
Internationalization (i18n) inspector plugin for TanStack DevTools with translation management and missing key detection
We found that @sucoza/i18n-devtools-plugin demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.

Security News
TeamPCP is partnering with ransomware group Vect to turn open source supply chain attacks on tools like Trivy and LiteLLM into large-scale ransomware operations.