Skip to content

Commit

Permalink
Added configuration for the icu formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzo committed Jul 23, 2014
1 parent d91f479 commit 59be3d1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/I18n/I18n.php
Expand Up @@ -21,6 +21,7 @@
use Aura\Intl\TranslatorFactory;
use Aura\Intl\TranslatorLocator;
use Cake\I18n\Formatter\SprintfFormatter;
use Cake\I18n\Formatter\IcuFormatter;

/**
* I18n handles translation of Text and time format strings.
Expand All @@ -42,7 +43,9 @@ public static function translators() {
'basic' => function() {
return new SprintfFormatter;
},
'intl' => function() { return new \Aura\Intl\IntlFormatter; },
'icu' => function() {
return new IcuFormatter;
},
]),
new TranslatorFactory,
static::$_defaultLocale
Expand Down

0 comments on commit 59be3d1

Please sign in to comment.