Initial commit

This commit is contained in:
2026-08-02 20:55:23 +02:00
parent 411f484b40
commit d558d18d9a
295 changed files with 9 additions and 5880 deletions
-19
View File
@@ -1,19 +0,0 @@
/**
* Transforms validated i18n config into Payload's localization object.
* Pure function — no side effects, no validation (caller validates first).
*/ export function buildLocalizationConfig(config) {
const { defaultLocale, fallback = true, locales } = config;
return {
defaultLocale,
fallback,
locales: locales.map((locale)=>({
code: locale.code,
label: locale.label,
...locale.rtl && {
rtl: true
}
}))
};
}
//# sourceMappingURL=localizationConfig.js.map