Skip to content

Commit 133da27

Browse files
committed
fix: add to the translation for edited
1 parent a352152 commit 133da27

File tree

2 files changed

+16
-5
lines changed

2 files changed

+16
-5
lines changed

lang/en/events/github/issues.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,17 @@
1010
],
1111
'edited' => [
1212
'title' => '⚠️ <b>Issue has been edited</b> to 🦑 :issue by :user',
13+
'changes' => [
14+
'title' => [
15+
'title' => '📖 <b>Title</b> has been changed',
16+
'from' => ' 📝 <b>From:</b> :title_from',
17+
'to' => ' 🏷 <b>To:</b> :title_to',
18+
],
19+
'body' => [
20+
'title' => '📖 <b>Body</b> has been changed',
21+
'body' => 'Please check the issue for more details',
22+
]
23+
]
1324
],
1425
'locked' => [
1526
'title' => '🔒 <b>Issue Locked</b> form 🦑 :issue by :user',

resources/views/events/github/issues/edited.blade.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@
1818
@include('tg-notifier::events.shared.partials.github._assignees', compact('payload', 'event'))
1919

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

0 commit comments

Comments
 (0)