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
20 lines
968 B
Plaintext
20 lines
968 B
Plaintext
import type { Field } from '../fields/config/types.js';
|
|
import type { SanitizedConfig } from '../index.js';
|
|
import type { JsonObject } from '../types/index.js';
|
|
type MergeDataToSelectedLocalesArgs = {
|
|
configBlockReferences: SanitizedConfig['blocks'];
|
|
dataWithLocales: JsonObject;
|
|
docWithLocales: JsonObject;
|
|
fields: Field[];
|
|
parentIsLocalized?: boolean;
|
|
selectedLocales: string[];
|
|
};
|
|
/**
|
|
* Merges data from dataWithLocales onto docWithLocales for specified locales.
|
|
* For localized fields, merges only the specified locales while preserving others.
|
|
* For non-localized fields, keeps existing values from docWithLocales unchanged.
|
|
* Returns a new object without mutating the original.
|
|
*/
|
|
export declare function mergeLocalizedData({ configBlockReferences, dataWithLocales, docWithLocales, fields, parentIsLocalized, selectedLocales, }: MergeDataToSelectedLocalesArgs): JsonObject;
|
|
export {};
|
|
//# sourceMappingURL=mergeLocalizedData.d.ts.map |