Translate notifications (#581)

Co-authored-by: Monta <monta@HP-ProBook-445-14-inch-G9-Notebook-PC-505aadfc.localdomain>
Co-authored-by: Eric Doughty-Papassideris <edoughtypapassideris@linagora.com>
This commit is contained in:
Montassar Ghanmy
2024-07-18 19:16:10 +01:00
committed by GitHub
parent 8a2651134b
commit 222a6d1059
8 changed files with 56 additions and 5 deletions
@@ -130,6 +130,7 @@ export class TestDbService {
cache?: User["cache"];
identity_provider?: string;
type?: UserType;
preferences?: User["preferences"];
} = {},
id: string = uuidv1(),
): Promise<User> {
@@ -144,6 +145,10 @@ export class TestDbService {
user.cache = options.cache || user.cache || { companies: [] };
user.identity_provider = options.identity_provider || "console";
user.type = options.type || "regular";
user.preferences = options.preferences || {
locale: "en",
timezone: 0,
};
//Fixme this is cheating, we should correctly set the cache in internal mode in the code
user.cache.companies = [