UNPKG

@mdfriday/foundry

Version:

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

22 lines (21 loc) 818 B
export type LanguageDirection = 'ltr' | 'rtl'; export interface LanguageInfo { code: string; name: string; direction: LanguageDirection; englishName?: string; } export interface 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; }