feat: translation codes
CI / 🧪 Tests Laravel (push) Successful in 2m34s
CI / 🐳 Build & Push Images (push) Successful in 2m26s

This commit is contained in:
2026-08-14 12:46:29 +02:00
parent 69372a49ed
commit 8b60283eeb
28 changed files with 59 additions and 62 deletions
@@ -24,9 +24,9 @@ class DeviceTokenController extends Controller
);
return response()->json([
'message' => $deviceToken->wasRecentlyCreated
? __('api.device_tokens.created')
: __('api.device_tokens.updated'),
'code' => $deviceToken->wasRecentlyCreated
? 'DEVICE_TOKEN_CREATED'
: 'DEVICE_TOKEN_UPDATED',
'deviceToken' => [
'id' => $deviceToken->id,
'expoPushToken' => $deviceToken->expo_push_token,
@@ -40,7 +40,7 @@ class DeviceTokenController extends Controller
auth()->user()->notify(new TestNotification);
return response()->json([
'message' => __('api.device_tokens.notification_sent'),
'code' => 'TEST_NOTIFICATION_SENT',
]);
}