@awesome-fe/translate
Version:
Translation utils
9 lines (8 loc) • 465 B
TypeScript
import { SentenceFormat } from '../translator/sentence-format';
export declare class SentenceFormatter {
static toHtml(sentence: string, format: SentenceFormat): string;
static toMarkdown(sentence: string, format: SentenceFormat): string;
static fromHtml(sentence: string, format: SentenceFormat): string;
static fromMarkdown(sentence: string, format: SentenceFormat): string;
static toPlain(sentence: string, format: SentenceFormat): string;
}