This codemod removes unused i18n translations.
This codemod supports removing several i18n unused translation patterns. The example below shows only one of the cases that might occur. For an exhaustive list of the supported patterns, please refer to the codemod's
test.ts
file.
import { useLocale } from '@calcom/lib/hooks/useLocale';
export default function A() {
const { t } = useLocale();
return <p>{t('key1')}</p>;
}
{
"key1": "key1",
"key2": "key2"
}
Any version of i18n.
v1.0.0
Autonomous: Changes can safely be pushed and merged without further human involvement.
Intuita File Transformation Engine
~3 minutes per occurrence