public function addLanguage($language)
    {
        $this->backup();

        file_put_contents($this->languageFilesPath.DIRECTORY_SEPARATOR."$language.json",
            json_encode((object) [], JSON_UNESCAPED_UNICODE | JSON_PRETTY_PRINT)
        );
    }
public function addLanguage($language)
    {
        $this->backup();

        file_put_contents($this->languageFilesPath.DIRECTORY_SEPARATOR."$language.json",
            json_encode((object) [], JSON_UNESCAPED_UNICODE | JSON_PRETTY_PRINT)
        );
    }
public function addLanguage ( $ language ) { $ this -> backup ( ) ; file_put_contents ( $ this -> languageFilesPath . DIRECTORY_SEPARATOR . "$language.json" , json_encode ( ( object ) [ ] , JSON_UNESCAPED_UNICODE | JSON_PRETTY_PRINT ) ) ; }
Add a new JSON language file.

@param $language
Add a new JSON language file .