Options
All
  • Public
  • Public/Protected
  • All
Menu

Module Translation/Basic

Index

Miscellaneous

CustomFunctionType

CustomFunctionType: (name: string, gender: Gender) => string

Type declaration

    • (name: string, gender: Gender): string
    • Parameters

      Returns string

Let globalize

globalize: Globalize

The wrapped Globalize object.

Const error

  • error(code: string, options?: Options, dev?: boolean): never

Const firstToLower

  • firstToLower(str: string): string

Const firstToUpper

  • firstToUpper(str: string): string

Const get

  • get(message: string, options?: Options): string
  • Gets the translation of a message from loadMessages.js.

    Parameters

    • message: string
    • Default value options: Options = {}

    Returns string

    The translated message.

Const setLanguage

  • setLanguage(lang: string): void

Const uppercase

  • uppercase(str: string, options?: Options): string

Generated using TypeDoc, the 1/31/2021 at 6:18:55 AM