UNPKG

@mdfriday/foundry

Version:

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

20 lines (19 loc) 579 B
import { FsService } from '../type'; export interface TranslationItem { id: string; translation: string; } export interface TranslateFunc { (translationID: string): string; } export declare class Translator { private contentLanguage; private translateFuncs; constructor(contentLanguage: string); translate(lang: string, translationID: string): string; setupTranslateFuncs(fsService: FsService): Promise<void>; private readI18nFile; private parseI18nContent; getAvailableLanguages(): string[]; hasLanguage(lang: string): boolean; }