I think from "react-i18next" <Trans> will not allow className instaead of it use <div> or <span> or any pther elements
example :
export function CustomTrans({ className, ...restProps }: CustomTransProps) {
return (
<span className={className}>
<Trans {...restProps} />
</span>
);
}