Skip to content

Commit

Permalink
fix: add to the translation for edited
Browse files Browse the repository at this point in the history
  • Loading branch information
pxthinh committed Nov 16, 2023
1 parent a352152 commit 133da27
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
11 changes: 11 additions & 0 deletions lang/en/events/github/issues.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,17 @@
],
'edited' => [
'title' => '⚠️ <b>Issue has been edited</b> to 🦑 :issue by :user',
'changes' => [
'title' => [
'title' => '📖 <b>Title</b> has been changed',
'from' => ' 📝 <b>From:</b> :title_from',
'to' => ' 🏷 <b>To:</b> :title_to',
],
'body' => [
'title' => '📖 <b>Body</b> has been changed',
'body' => 'Please check the issue for more details',
]
]
],
'locked' => [
'title' => '🔒 <b>Issue Locked</b> form 🦑 :issue by :user',
Expand Down
10 changes: 5 additions & 5 deletions resources/views/events/github/issues/edited.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
@include('tg-notifier::events.shared.partials.github._assignees', compact('payload', 'event'))

@if(isset($payload->changes->title))
{!! "📖 <b>Title</b> has been changed\n" !!}
{!! " 📝 <b>From:</b> {$payload->changes->title->from}\n" !!}
{!! " 🏷 <b>To:</b> {$payload->issue->title}\n" !!}
{!! __('tg-notifier::events/github/issues.edited.changes.title.title') !!}
{!! __('tg-notifier::events/github/issues.edited.changes.title.from', ['title_from' => $payload->changes->title->from]) !!}
{!! __('tg-notifier::events/github/issues.edited.changes.title.to', ['title_to' => $payload->issue->title]) !!}
@elseif(isset($payload->changes->body))
{!! "📖 <b>Body</b> has been changed\n"!!}
{!! "Please check the issue for more details\n"!!}
{!! __('tg-notifier::events/github/issues.edited.changes.body.title')!!}
{!! __('tg-notifier::events/github/issues.edited.changes.body.body')!!}
@endif

0 comments on commit 133da27

Please sign in to comment.