src/Module.php
public function getJsTranslations()
    {
        $translations = [];
        foreach ($this->_jsTranslations as $module => $data) {
            foreach ($data as $key) {
                $translations[$key] = Yii::t($module, $key, [], Yii::$app->language);
            }
        }
        return $translations;
    }
public function getJsTranslations()
    {
        $translations = [];
        foreach ($this->_jsTranslations as $module => $data) {
            foreach ($data as $key) {
                $translations[$key] = Yii::t($module, $key, [], Yii::$app->language);
            }
        }
        return $translations;
    }
public function getJsTranslations ( ) { $ translations = [ ] ; foreach ( $ this -> _jsTranslations as $ module => $ data ) { foreach ( $ data as $ key ) { $ translations [ $ key ] = Yii :: t ( $ module , $ key , [ ] , Yii :: $ app -> language ) ; } } return $ translations ; }
Getter method for the js translations array.

@return array An array with all translated messages to store in the and access from the admin js scripts.
Getter method for the js translations array .