\Aura\IntlIntlFormatter

Uses php intl extension to format messages

Summary

Methods
Properties
Constants
__construct()
format()
No public properties found
No constants found
throwCannotInstantiateFormatter()
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

__construct()

__construct(string  $icu_version = INTL_ICU_VERSION) 

Constructor.

Parameters

string $icu_version

The current ICU version; mostly used for testing.

Throws

\Aura\Intl\Exception\IcuVersionTooLow

when the Version of ICU installed is too low for Aura.Intl to work properly.

format()

format(string  $locale, string  $string, array  $tokens_values) : string

Format the message with the help of php intl extension

Parameters

string $locale
string $string
array $tokens_values

Throws

\Aura\Intl\Exception

Returns

string

throwCannotInstantiateFormatter()

throwCannotInstantiateFormatter() 

Throws exception

Throws

\Aura\Intl\Exception\CannotInstantiateFormatter