You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[READ-ONLY] Provides support for message translation and localization for dates and numbers. This repo is a split of the main code that can be found in https://github.com/cakephp/cakephp
The I18n library provides a I18n service locator that can be used for setting
the current locale, building translation bundles and translating messages.
Additionally, it provides the Time and Number classes which can be used to
output dates, currencies and any numbers in the right format for the specified locale.
Usage
Internally, the I18n class uses Aura.Intl.
Getting familiar with it will help you understand how to build and manipulate translation bundles,
should you wish to create them manually instead of using the conventions this library uses.
Please refer to the CakePHP Manual for details
about expected folder structure and file naming.
Translating a Message
echo__(
'Hi {0,string}, your balance on the {1,date} is {2,number,currency}',
['Charles', '2014-01-13 11:12:00', 1354.37]
);
// Returns
Hi Charles, your balance on the Jan 13, 2014, 11:12AM is $1,354.37
[READ-ONLY] Provides support for message translation and localization for dates and numbers. This repo is a split of the main code that can be found in https://github.com/cakephp/cakephp