UNPKG

@mdfriday/foundry

Version:

The core engine of MDFriday. Convert Markdown and shortcodes into fully themed static sites – Hugo-style, powered by TypeScript.

18 lines (17 loc) 884 B
import { LanguageInfo, LanguageDirection, LanguageService } from './types'; export declare class DefaultLanguageService implements LanguageService { getAllCodes(): string[]; getAllNames(): string[]; getCodesByDirection(direction: LanguageDirection): string[]; getNamesByDirection(direction: LanguageDirection): string[]; getCodeNameMap(): Record<string, string>; getCodeNameMapByDirection(direction: LanguageDirection): Record<string, string>; getNameByCode(code: string): string | undefined; getLanguageInfo(code: string): LanguageInfo | undefined; isSupported(code: string): boolean; getDirection(code: string): LanguageDirection | undefined; isLTR(code: string): boolean; isRTL(code: string): boolean; } export declare function getLanguageService(): LanguageService; export declare function createLanguageService(): LanguageService;