Table Of Contents

Application Packaging Standard

Last updated 18-Mar-2019

aps/i18n

Return: string

Table of contents

Parameters

ARGUMENT TYPE DESCRIPTION
s
undefined
 
options
undefined
 
multilang
undefined
 
packageId
undefined
 

Public Methods

METHOD RETURN DESCRIPTION
bindToPackage (packageId)
function
Creates a localization function bound to the specified package ID
formatCurrency (value, currency)   The method that transforms currency in accordance with the current locale
formatDate (date)   The method that transforms date in accordance with the current locale
formatDatetime (date)   The method that transforms date and time in accordance with the current locale
formatNum (value)   The method that transforms number in accordance with the current locale
formatTime (date)   The method that transforms time in accordance with the current locale

bindToPackage

Creates a localization function bound to the specified package ID.

Return: function

ARGUMENT TYPE DESCRIPTION
packageId
String
Package APS ID.

formatCurrency

The method that transforms currency in accordance with the current locale.

ARGUMENT TYPE DESCRIPTION
value
undefined
Number.
currency
undefined
Currency in ISO 4217 code, e.g. USD.

formatDate

The method that transforms date in accordance with the current locale.

ARGUMENT TYPE DESCRIPTION
date
undefined
Date value. String or Date.

formatDatetime

The method that transforms date and time in accordance with the current locale.

ARGUMENT TYPE DESCRIPTION
date
undefined
Date value. String or Date.

formatNum

The method that transforms number in accordance with the current locale.

ARGUMENT TYPE DESCRIPTION
value
undefined
Number.

formatTime

The method that transforms time in accordance with the current locale.

ARGUMENT TYPE DESCRIPTION
date
undefined
Date value. String or Date.