diff --git a/module/AjastaI18n/src/Ajasta/I18n/Formatter/UnitFormatter.php b/module/AjastaI18n/src/Ajasta/I18n/Formatter/UnitFormatter.php index f048460..06d970a 100644 --- a/module/AjastaI18n/src/Ajasta/I18n/Formatter/UnitFormatter.php +++ b/module/AjastaI18n/src/Ajasta/I18n/Formatter/UnitFormatter.php @@ -65,7 +65,7 @@ public function format($number, $category, $unit, $width) $unitBundle = $categoryBundle->get($unit); } else { - $unitBundle = $this->resourceBundle->get(static::$widthMap[$width]); + $unitBundle = $this->resourceBundle->get(static::$widthMap[$width])->get($unit); } if ($unitBundle === null) {