private function createNewLanguageLabels(string $slug)
    {
        $defaultLangPathLibrary = accioPath("resources/lang/".Language::getDefault()->slug);
        $defaultLangPath = base_path("resources/lang/".Language::getDefault()->slug);

        if(is_dir($defaultLangPathLibrary)) {
            File::copyDirectory($defaultLangPathLibrary, accioPath("resources/lang/".$slug));
        }

        if(is_dir($defaultLangPath)) {
            File::copyDirectory($defaultLangPath, base_path("resources/lang/".$slug));
        }
    }
private function createNewLanguageLabels(string $slug)
    {
        $defaultLangPathLibrary = accioPath("resources/lang/".Language::getDefault()->slug);
        $defaultLangPath = base_path("resources/lang/".Language::getDefault()->slug);

        if(is_dir($defaultLangPathLibrary)) {
            File::copyDirectory($defaultLangPathLibrary, accioPath("resources/lang/".$slug));
        }

        if(is_dir($defaultLangPath)) {
            File::copyDirectory($defaultLangPath, base_path("resources/lang/".$slug));
        }
    }
private function createNewLanguageLabels ( string $ slug ) { $ defaultLangPathLibrary = accioPath ( "resources/lang/" . Language :: getDefault ( ) -> slug ) ; $ defaultLangPath = base_path ( "resources/lang/" . Language :: getDefault ( ) -> slug ) ; if ( is_dir ( $ defaultLangPathLibrary ) ) { File :: copyDirectory ( $ defaultLangPathLibrary , accioPath ( "resources/lang/" . $ slug ) ) ; } if ( is_dir ( $ defaultLangPath ) ) { File :: copyDirectory ( $ defaultLangPath , base_path ( "resources/lang/" . $ slug ) ) ; } }
Copies labels from the default languages to the new language.
So creates labels for new language.

@param string $slug
Copies labels from the default languages to the new language . So creates labels for new language .