Skip to content

Commit

Permalink
Fix default formatter key name check.
Browse files Browse the repository at this point in the history
  • Loading branch information
ADmad committed Jul 27, 2014
1 parent 1758249 commit 6b2cb9d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/I18n/I18n.php
Expand Up @@ -207,7 +207,8 @@ protected static function _fallbackTranslator($name, $locale) {
new MessagesFileLoader($name, $locale, 'po')
]);

if (static::$_defaultFormatter !== 'default') {
// \Aura\Intl\Package by default uses formatter configured with key "basic".
if (static::$_defaultFormatter !== 'basic') {
$formatter = static::$_defaultFormatter;
$chain = function() use ($formatter, $chain) {
$package = $chain();
Expand Down

0 comments on commit 6b2cb9d

Please sign in to comment.