From b469e8b538a85dcfdc4ebfc6e17bba20af953ce0 Mon Sep 17 00:00:00 2001 From: Tan Nguyen Date: Tue, 21 May 2024 19:22:58 +0700 Subject: [PATCH] fix: update push and note translations --- lang/de/app.php | 1 + lang/en/app.php | 1 + lang/ja/app.php | 1 + lang/vi/app.php | 1 + resources/views/events/gitlab/note/commit.blade.php | 6 ++---- resources/views/events/gitlab/push/default.blade.php | 1 - 6 files changed, 6 insertions(+), 5 deletions(-) diff --git a/lang/de/app.php b/lang/de/app.php index cb3d035..4964571 100644 --- a/lang/de/app.php +++ b/lang/de/app.php @@ -5,4 +5,5 @@ 'unknown_callback' => 'Unknown Callback. Something went wrong!', 'invalid_request' => 'Invalid Request!', 'branch' => 'Branch', + 'commit' => 'Commit', ]; diff --git a/lang/en/app.php b/lang/en/app.php index cb3d035..4964571 100644 --- a/lang/en/app.php +++ b/lang/en/app.php @@ -5,4 +5,5 @@ 'unknown_callback' => 'Unknown Callback. Something went wrong!', 'invalid_request' => 'Invalid Request!', 'branch' => 'Branch', + 'commit' => 'Commit', ]; diff --git a/lang/ja/app.php b/lang/ja/app.php index cb3d035..4964571 100644 --- a/lang/ja/app.php +++ b/lang/ja/app.php @@ -5,4 +5,5 @@ 'unknown_callback' => 'Unknown Callback. Something went wrong!', 'invalid_request' => 'Invalid Request!', 'branch' => 'Branch', + 'commit' => 'Commit', ]; diff --git a/lang/vi/app.php b/lang/vi/app.php index 48559dc..0e34f4f 100644 --- a/lang/vi/app.php +++ b/lang/vi/app.php @@ -5,4 +5,5 @@ 'unknown_callback' => 'Không rõ Callback. Đã xảy ra lỗi!', 'invalid_request' => 'Yêu cầu không hợp lệ!', 'branch' => 'Tên nhánh', + 'commit' => 'Commit', ]; diff --git a/resources/views/events/gitlab/note/commit.blade.php b/resources/views/events/gitlab/note/commit.blade.php index 61ca633..37dfbc9 100644 --- a/resources/views/events/gitlab/note/commit.blade.php +++ b/resources/views/events/gitlab/note/commit.blade.php @@ -7,15 +7,13 @@ ?> 💬 {!! __('tg-notifier::events/gitlab/note.title.commit', [ 'repo' => "🦊{$payload->project->path_with_namespace}", - 'user' => "{$payload->user->name}" + 'user' => "{$payload->user->name}" ] ) !!} -⚙️ {{ $payload->commit->message }} - +⚙️ {{ __('tg-notifier::app.commit') }}: {{ $payload->commit->message }} 🔗 {!! __('tg-notifier::events/gitlab/note.view_comment', [ 'link' => "{$payload->commit->id}" ] ) !!} - @include('tg-notifier::events.shared.partials.gitlab._body', compact('payload', 'event')) diff --git a/resources/views/events/gitlab/push/default.blade.php b/resources/views/events/gitlab/push/default.blade.php index 9298c2b..822740c 100644 --- a/resources/views/events/gitlab/push/default.blade.php +++ b/resources/views/events/gitlab/push/default.blade.php @@ -34,7 +34,6 @@ 'commit_message' => $commit->message, 'commit_by' => $commit->author->name, ]) !!} - @endforeach @endif