Ken hai 2 semanas
pai
achega
d723fdac3d
Modificáronse 2 ficheiros con 5 adicións e 11 borrados
  1. 3 1
      app/Helpers/helpers.php
  2. 2 10
      lang/vi/messages.php

+ 3 - 1
app/Helpers/helpers.php

@@ -5,7 +5,9 @@ use Illuminate\Support\Facades\Lang;
 if (!function_exists('lang')) {
     function lang(string $key): string
     {
-        return Lang::get("messages.{$key}");
+        $msg = Lang::get("messages.{$key}");
+        if ($msg === "messages.{$key}") return $key;
+        return $msg;
     }
 }
 

+ 2 - 10
lang/vi/messages.php

@@ -39,18 +39,10 @@ return [
     HttpStatus::INSUFFICIENT_WALLET => 'Ví không đủ cân bằng',
     HttpStatus::FACEBOOK_ERROR => 'Facebook error',
     HttpStatus::VERIFY_ERROR => 'Xác nhận thất bại',
-    HttpStatus::PAY_VERIFY_ERROR =>'Thanh toán xác nhận thất bại',
-    HttpStatus::IM_SYSTEM_ERROR =>'Lỗi hệ thống Im',
+    HttpStatus::PAY_VERIFY_ERROR => 'Thanh toán xác nhận thất bại',
+    HttpStatus::IM_SYSTEM_ERROR => 'Lỗi hệ thống Im',
     'ok' => 'ok',
     "迁移失败" => "Di cư thất bại"
 
 
-
-
-
-
-
-
-
-
 ];