/* @var $this yii\web\View */
/* @var $locale string */
/* @var $query string */
/* @var $title string */
echo $this->render('_locale', ['locale' => $locale, 'title' => 'ICU Region Data']);
if ($locale) {
    ?>

<h2 id="icu-data-region">ICU Region Data <small><a href="#icu-data-region">#</a></small></h2>

<p>In PHP you may retrieve this data using the following code:</p>
<pre>
<?php 
    echo '&lt;?php';
    ?>

$data = ResourceBundle::create('<?php 
    echo Html::encode($locale);
    ?>
', 'ICUDATA-region');
foreach($data as $name => $value) {
    echo "$name: " . print_r($value, true);
}
</pre>

<?php 
    echo $this->render('_icuData', ['icuData' => ResourceInfo::regionData($locale)]);
    ?>

<?php 
}