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
18 lines
798 B
Plaintext
18 lines
798 B
Plaintext
import type { SanitizedLocalizationConfig } from '../config/types.js';
|
|
import type { TypedFallbackLocale } from '../index.js';
|
|
interface Args {
|
|
fallbackLocale: TypedFallbackLocale;
|
|
locale: string;
|
|
localization: SanitizedLocalizationConfig;
|
|
}
|
|
/**
|
|
* Sanitizes fallbackLocale based on a provided fallbackLocale, locale and localization config
|
|
*
|
|
* Handles the following scenarios:
|
|
* - determines if a fallback locale should be used
|
|
* - determines if a locale specific fallback should be used in place of the default locale
|
|
* - sets the fallbackLocale to 'null' if no fallback locale should be used
|
|
*/
|
|
export declare const sanitizeFallbackLocale: ({ fallbackLocale, locale, localization, }: Args) => TypedFallbackLocale;
|
|
export {};
|
|
//# sourceMappingURL=sanitizeFallbackLocale.d.ts.map |