Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
11 lines
860 B
Plaintext
11 lines
860 B
Plaintext
import type { ClientTranslationsObject, I18nClient } from '@payloadcms/translations';
|
|
import { type SanitizedConfig } from 'payload';
|
|
/**
|
|
* In the context of Next.js, this function initializes the i18n object for the current request.
|
|
*
|
|
* It must be called on the server side, and within the lifecycle of a request since it relies on the request headers and cookies.
|
|
*/
|
|
export declare const getNextRequestI18n: <TAdditionalTranslations = {}, TAdditionalClientTranslationKeys extends string = never>({ config, }: {
|
|
config: SanitizedConfig;
|
|
}) => Promise<[TAdditionalClientTranslationKeys] extends [never] ? I18nClient : TAdditionalTranslations extends object ? I18nClient<TAdditionalTranslations, TAdditionalClientTranslationKeys> : I18nClient<ClientTranslationsObject, TAdditionalClientTranslationKeys>>;
|
|
//# sourceMappingURL=getNextRequestI18n.d.ts.map |