Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Translator

Index

Constructors

constructor

Properties

Private locale

locale: string

Private options

options: I18nOptions

Private t

Private userOptions

userOptions: Partial<I18nOptions>

Methods

Private getAttrFromSelector

  • getAttrFromSelector(selector: string): string

Private loadResources

  • loadResources(): void

processHtml

  • processHtml(html: string): string

Private setOptions

  • setOptions(): void

Private translate

  • translate(html: string): string

Private translateAttributes

  • translateAttributes($elem: any): any

Private translateElem

  • translateElem($: typeof cheerio, elem: Cheerio): Cheerio