Table Of Contents

Application Packaging Standard

Last updated 18-Mar-2019

aps/i18n/phone

Table of contents

Public Methods

METHOD RETURN DESCRIPTION
format (phoneNumber, countryCode)
string
The method that transforms phone number to international format with localization of ” ext
parse (phoneNumber, countryCode)
string
The method that transforms phone number to E-123 international format

format

The method that transforms phone number to international format with localization of ” ext. “.

Return: string

ARGUMENT TYPE DESCRIPTION
phoneNumber
String
The phone number in string
countryCode
String
ISO 3166-1 two-letter country code. Region that we are expecting the number to be from. This is only used if the number being parsed is not written in international format.

parse

The method that transforms phone number to E-123 international format.

Return: string

ARGUMENT TYPE DESCRIPTION
phoneNumber
String
The phone number in string
countryCode
String
ISO 3166-1 two-letter country code. Region that we are expecting the number to be from. This is only used if the number being parsed is not written in international format.
aps/Hr