chore: Sync packages mismatches (#9725)

This commit is contained in:
Omar López authored and GitHub committed 2023-06-22 15:25:37 -07:00
1 parent cfa6a5b996
commit 2d6eebcd8a
171 files changed
+431 -825

No files matched your search

+3 -2
View File
@@ -15,12 +15,13 @@
"@calcom/config": "*",
"@calcom/dayjs": "*",
"@sendgrid/client": "^7.7.0",
"@vercel/og": "^0.0.21",
"@vercel/og": "^0.5.0",
"bcryptjs": "^2.4.3",
"i18next": "^23.2.3",
"ical.js": "^1.4.0",
"ics": "^2.37.0",
"jimp": "^0.16.1",
"next-i18next": "^11.3.0",
"next-i18next": "^13.2.2",
"react-hot-toast": "^2.3.0",
"rrule": "^2.7.1",
"tailwind-merge": "^1.8.1",
+2 -2
View File
@@ -8,8 +8,8 @@ export const getTranslation = async (locale: string, ns: string) => {
const _i18n = i18next.createInstance();
_i18n.init({
lng: locale,
resources: _nextI18Next.initialI18nStore,
fallbackLng: _nextI18Next.userConfig?.i18n.defaultLocale,
resources: _nextI18Next?.initialI18nStore,
fallbackLng: _nextI18Next?.userConfig?.i18n.defaultLocale,
});
return _i18n;
};
+2 -1
View File
@@ -1,5 +1,6 @@
import { faker } from "@faker-js/faker";
import type { Booking, EventType, Prisma, Webhook } from "@prisma/client";
import type { TFunction } from "next-i18next";
import { BookingStatus } from "@calcom/prisma/enums";
import type { CalendarEvent, Person, VideoCallData } from "@calcom/types/Calendar";
@@ -23,7 +24,7 @@ export const buildPerson = (person?: Partial<Person>): Person => {
id: faker.datatype.number(),
language: {
locale: faker.random.locale(),
translate: (key: string) => key,
translate: ((key: string) => key) as TFunction,
},
...person,
};