问答 / 0 / 1 / 创建于 5年前
优雅的方式有没有,判断resource/lang下面的语言包是否存在。
if (file_exists(resource_path("lang/$locale"))) { // Locale directory exists }
ref: https://stackoverflow.com/questions/515181...
App::getLocale()
执行语言包
app.locale
我要举报该,理由是:
ref: https://stackoverflow.com/questions/515181...