feat: fetch remote i18n

This commit is contained in:
Mohamed Marrouchi
2024-10-18 17:50:35 +01:00
parent 08b1deae50
commit 85cc85e4db
50 changed files with 1823 additions and 1553 deletions

10
api/src/index.d.ts vendored
View File

@@ -9,9 +9,9 @@
import 'mongoose';
import { SubscriberStub } from './chat/schemas/subscriber.schema';
import {
WithoutGenericAny,
RecursivePartial,
ObjectWithNestedKeys,
RecursivePartial,
WithoutGenericAny,
} from './utils/types/filter.types';
type TOmitId<T> = Omit<T, 'id'>;
@@ -63,3 +63,9 @@ declare module 'mongoose' {
type THydratedDocument<T> = TOmitId<HydratedDocument<T>>;
}
declare global {
type HyphenToUnderscore<S extends string> = S extends `${infer P}-${infer Q}`
? `${P}_${HyphenToUnderscore<Q>}`
: S;
}