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
19 lines
784 B
Plaintext
19 lines
784 B
Plaintext
import type { SanitizedConfig } from '../config/types.js';
|
|
import type { TypedFallbackLocale } from '../index.js';
|
|
import type { PayloadRequest } from '../types/index.js';
|
|
/**
|
|
* Mutates the Request to contain 'locale' and 'fallbackLocale' based on data or searchParams
|
|
*/
|
|
export declare function addLocalesToRequestFromData(req: PayloadRequest): void;
|
|
type SanitizeLocalesArgs = {
|
|
fallbackLocale: TypedFallbackLocale;
|
|
locale: string;
|
|
localization: SanitizedConfig['localization'];
|
|
};
|
|
type SanitizeLocalesReturn = {
|
|
fallbackLocale?: TypedFallbackLocale;
|
|
locale?: string;
|
|
};
|
|
export declare const sanitizeLocales: ({ fallbackLocale, locale, localization, }: SanitizeLocalesArgs) => SanitizeLocalesReturn;
|
|
export {};
|
|
//# sourceMappingURL=addLocalesToRequest.d.ts.map |