I18n VREADME.md - Replace API Routes

This codemod removes unused i18n translations.

i18n
Filemod
Estimated time saving
~3 minutes/occurrence
Change mode
Autonomous
Applicability criteria

Any version of i18n.

Made by
Codemod.com
Codemod.com

Usage →

Codemod CLI:

intalling vs code extension tooltip icon
codemod i18n/remove-unused-translations
copy CLI command icon

Codemod VS Code extension:

intalling vs code extension tooltip icon
vs code logo
Run in VS Code

Description

This codemod removes unused i18n translations.

Before:

import { useLocale } from '@calcom/lib/hooks/useLocale';
export default function A() {
	const { t } = useLocale();

	return <p>{t('key1')}</p>;
}

After:

{
	"key1": "key1",
	"key2": "key2"
}