Current section

Files

Jump to
ckeditor5_phoenix dist src hooks editor utils load-editor-translations.d.ts
Raw

dist/src/hooks/editor/utils/load-editor-translations.d.ts

/**
* Loads the editor translations for the given languages.
*
* Make sure this function is properly compiled and bundled in self hosted environments!
*
* @param pkg - The package to load translations from ('ckeditor5' or 'ckeditor5-premium-features').
* @param translations - The list of language codes to load translations for.
* @returns A promise that resolves to an array of loaded translation packs.
*/
export declare function loadEditorTranslations(pkg: EditorPkgName, translations: string[]): Promise<any[]>;
/**
* Type representing the package name for CKEditor 5.
*/
type EditorPkgName = 'ckeditor5' | 'ckeditor5-premium-features';
export {};
//# sourceMappingURL=load-editor-translations.d.ts.map