index.php 563 Bytes
<?php
/**
 * Created by PhpStorm.
 * User: Alex Savenko
 * Date: 28.12.2016
 * Time: 21:52
 */

use yii\helpers\Html;
use yii\grid\GridView;
use yii\helpers\Url;

/* @var $this yii\web\View */

$this->title = Yii::t('app', 'Report');
$this->params['breadcrumbs'][] = $this->title;
?>

<div>
    <h1><?= Html::encode($this->title) ?></h1>
    <?php
        $service = new Google_Service_Translate(\Yii::$app->googleApi->client);
        $result = $service->languages->listLanguages([
            'target' => 'ru'
        ]);
        print_r($result);
    ?>
</div>