API Docs for: 0.6.1
Show:

Intl.common Class

Access point: ac.intl.* Internationalization addon

Item Index

Methods

Methods

formatDate

(
  • date
)
String

Returns local-specified date.

Parameters:

  • date Date

    The initial date to be formatted.

Returns:

String: formatted data for language.

lang

(
  • label
  • args
)
String | Object

Returns translated string.

Parameters:

  • label String

    Optional. The initial label to be translated. If not provided, returns a copy of all resources.

  • args String | Array | Object

    optional parameters for the string

Returns:

String | Object: translated string for label or if no label was provided an object containing all resources.