diff --git a/lang/en/events/github/issues.php b/lang/en/events/github/issues.php
index 7beb0f4..87cff4a 100644
--- a/lang/en/events/github/issues.php
+++ b/lang/en/events/github/issues.php
@@ -12,15 +12,15 @@
'title' => '⚠️ Issue has been edited to 🦑 :issue by :user',
'changes' => [
'title' => [
- 'title' => '📖 Title has been changed',
- 'from' => ' 📝 From: :title_from',
- 'to' => ' 🏷 To: :title_to',
+ 'name' => '📖 Title has been changed',
+ 'from' => '📝 From: :title_from',
+ 'to' => '🏷 To: :title_to',
],
'body' => [
'title' => '📖 Body has been changed',
- 'body' => 'Please check the issue for more details',
- ]
- ]
+ 'message' => 'Please check the issue for more details',
+ ],
+ ],
],
'locked' => [
'title' => '🔒 Issue Locked form 🦑 :issue by :user',
diff --git a/lang/en/events/shared/github.php b/lang/en/events/shared/github.php
index 782d6b6..ce3f29f 100644
--- a/lang/en/events/shared/github.php
+++ b/lang/en/events/shared/github.php
@@ -4,4 +4,7 @@
'_body' => [
'title' => '📖 Content:',
],
+ '_assignee' => [
+ 'title' => '🙋 Assignee: ',
+ ],
];
diff --git a/resources/views/events/github/issues/edited.blade.php b/resources/views/events/github/issues/edited.blade.php
index a983584..719f159 100644
--- a/resources/views/events/github/issues/edited.blade.php
+++ b/resources/views/events/github/issues/edited.blade.php
@@ -16,12 +16,11 @@
{!! __('tg-notifier::events/github/issues.issue_title') !!} = $issue->title; ?>
@include('tg-notifier::events.shared.partials.github._assignees', compact('payload', 'event'))
-
@if(isset($payload->changes->title))
- {!! __('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]) !!}
+{!! __('tg-notifier::events/github/issues.edited.changes.title.name')!!}
+ {!! __('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))
- {!! __('tg-notifier::events/github/issues.edited.changes.body.title')!!}
- {!! __('tg-notifier::events/github/issues.edited.changes.body.body')!!}
+{!! __('tg-notifier::events/github/issues.edited.changes.body.title')!!}
+{!! __('tg-notifier::events/github/issues.edited.changes.body.message')!!}
@endif
diff --git a/resources/views/events/shared/partials/github/_assignees.blade.php b/resources/views/events/shared/partials/github/_assignees.blade.php
index 6220e0a..6fa61b0 100644
--- a/resources/views/events/shared/partials/github/_assignees.blade.php
+++ b/resources/views/events/shared/partials/github/_assignees.blade.php
@@ -5,7 +5,7 @@
*/
if (isset($event) && isset($payload) && !empty($payload->{$event}->assignees)) {
- $assigneeText = "🙋 Assignee: ";
+ $assigneeText = __('tg-notifier::events/shared/github._assignee.title');
$assigneeArray = [];
foreach ($payload->{$event}->assignees as $assignee) {
$assigneeArray[] = "html_url}\">@{$assignee->login} ";