Skip to content

Commit

Permalink
fix: update push and note translations
Browse files Browse the repository at this point in the history
tanhongit committed May 21, 2024
1 parent 6a22e26 commit b469e8b
Showing 6 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions lang/de/app.php
Original file line number Diff line number Diff line change
@@ -5,4 +5,5 @@
'unknown_callback' => 'Unknown Callback. Something went wrong!',
'invalid_request' => 'Invalid Request!',
'branch' => 'Branch',
'commit' => 'Commit',
];
1 change: 1 addition & 0 deletions lang/en/app.php
Original file line number Diff line number Diff line change
@@ -5,4 +5,5 @@
'unknown_callback' => 'Unknown Callback. Something went wrong!',
'invalid_request' => 'Invalid Request!',
'branch' => 'Branch',
'commit' => 'Commit',
];
1 change: 1 addition & 0 deletions lang/ja/app.php
Original file line number Diff line number Diff line change
@@ -5,4 +5,5 @@
'unknown_callback' => 'Unknown Callback. Something went wrong!',
'invalid_request' => 'Invalid Request!',
'branch' => 'Branch',
'commit' => 'Commit',
];
1 change: 1 addition & 0 deletions lang/vi/app.php
Original file line number Diff line number Diff line change
@@ -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',
];
6 changes: 2 additions & 4 deletions resources/views/events/gitlab/note/commit.blade.php
Original file line number Diff line number Diff line change
@@ -7,15 +7,13 @@
?>
💬 {!! __('tg-notifier::events/gitlab/note.title.commit', [
'repo' => "🦊<a href='{$payload->object_attributes->url}'>{$payload->project->path_with_namespace}</a>",
'user' => "<b>{$payload->user->name}</b>"
'user' => "<code>{$payload->user->name}</code>"
]
) !!}

⚙️ <b>{{ $payload->commit->message }}</b>

⚙️ {{ __('tg-notifier::app.commit') }}: <code>{{ $payload->commit->message }}</code>
🔗 {!! __('tg-notifier::events/gitlab/note.view_comment', [
'link' => "<a href='{$payload->object_attributes->url}'>{$payload->commit->id}</a>"
]
) !!}

@include('tg-notifier::events.shared.partials.gitlab._body', compact('payload', 'event'))
1 change: 0 additions & 1 deletion resources/views/events/gitlab/push/default.blade.php
Original file line number Diff line number Diff line change
@@ -34,7 +34,6 @@
'commit_message' => $commit->message,
'commit_by' => $commit->author->name,
]) !!}

@endforeach
@endif

0 comments on commit b469e8b

Please sign in to comment.