Laravel5.5 動態切換多語言操做(直接上代碼)

第一步:新建全部的語言包文件  resources/langphp messages.phphtml 就是返回一個數組 return [] 格式ajax 中文的: return [ "test" => "這裏是測試", "test1" => "繼續測試", ...... ]; 英文的:數組 return [ "test" => "this is a test..."
相關文章
相關標籤/搜索