Open recallwei opened 1 year ago
to solve we need only add a file in lib like this:
// <rootDir>/index.ts export type Opts = { /** @default 'i18n' */ translationsPath?: string, /** @default 'ulang' */ cookieLangName?: string, /** @default false */ browserEnable?: boolean, /** @default 'en' */ defaultLang?: string, /** @default 'clang' */ paramLangName?: string, /** @default ['en'] */ siteLangs?: string[], /** @default 'texts' */ textsVarName?: string, } export function i18n(opts: Opts): import('express').RequestHandler export default i18n
to solve we need only add a file in lib like this: