diff --git a/src/DebugBar/DataCollector/LocalizationCollector.php b/src/DebugBar/DataCollector/LocalizationCollector.php new file mode 100644 index 0000000..7fcb2a5 --- /dev/null +++ b/src/DebugBar/DataCollector/LocalizationCollector.php @@ -0,0 +1,66 @@ + $this->getLocale(), + 'domain' => $this->getDomain(), + ); + } + + public function getName() + { + return 'localization'; + } + + public function getWidgets() + { + return array( + 'domain' => array( + 'icon' => 'bookmark', + 'map' => 'localization.domain', + ), + 'locale' => array( + 'icon' => 'flag', + 'map' => 'localization.locale', + ) + ); + } +} \ No newline at end of file