Save and use user's locale preference

This commit is contained in:
Timothy Armes
2024-09-30 14:53:24 +02:00
parent 03f5ea3454
commit ee031588ff
13 changed files with 467 additions and 367 deletions
+17
View File
@@ -0,0 +1,17 @@
import NextAuth from "next-auth";
declare module "next-auth" {
interface User {
locale?: string;
}
interface Session {
user: User;
}
}
declare module "@auth/core/adapters" {
interface AdapterUser {
locale?: string;
}
}