@paroicms/server
Version:
The ParoiCMS server
24 lines (23 loc) • 1.18 kB
TypeScript
import { type ScLocalizedString, type ScSchemaLocales, type ScTranslations } from "@paroicms/public-anywhere-lib";
export declare function createEmptySchemaLocales(languages: string[], commonLanguageLabels: ScLocalizedString): ScSchemaLocales;
export interface LocalizedTranslations {
[language: string]: ScTranslations;
}
export declare function createEmptyLocalizedTranslations(languages: string[]): LocalizedTranslations;
export declare function mergeL10nDepth2(from: LocalizedTranslations, to: LocalizedTranslations): void;
export declare function importPartOfL10n(options: {
from: LocalizedTranslations;
fromPath: string[];
to: ScSchemaLocales;
toPath?: string[];
ifDuplicate?: "overwrite" | "merge";
}): void;
export declare function appendToSchemaLocales({ dir, baseFileName, jsonTOnly, }: {
dir: string;
baseFileName: string;
jsonTOnly: string;
}, l10n: LocalizedTranslations): Promise<void>;
export declare function completeSchemaLocales(dir: string, l10n: ScSchemaLocales): Promise<void>;
export declare function makeSiteLanguageLabels(languages: string[], commonLanguageLabels: ScLocalizedString): {
[language: string]: string;
};