feat: autoTranslate preferences

This commit is contained in:
2023-11-06 14:16:19 +00:00
parent 3d69762359
commit de0e58b657
5 changed files with 32 additions and 1 deletions

View File

@ -83,7 +83,7 @@ export function NoteContextMenu({ ev, ...props }: NosteContextMenuProps) {
useEffect(() => {
const sub = getCurrentSubscription(login.subscriptions);
if (sub?.type === SubscriptionType.Premium) {
if (sub?.type === SubscriptionType.Premium && (login.preferences.autoTranslate ?? true)) {
translate();
}
}, []);