From 419a41a60a0de424b26f301d310063b7ab00ecb3 Mon Sep 17 00:00:00 2001 From: kenautomus Date: Fri, 9 Feb 2024 14:44:39 +0700 Subject: [PATCH 1/4] create star action template --- lang/de/events/github/star.php | 13 +++++++++++++ lang/en/events/github/star.php | 13 +++++++++++++ lang/en/events/github/watch.php | 2 +- lang/ja/events/github/star.php | 13 +++++++++++++ lang/vi/events/github/star.php | 13 +++++++++++++ .../views/events/github/meta/deleted.blade.php | 6 +++--- .../views/events/github/star/created.blade.php | 12 ++++++++++++ .../views/events/github/star/deleted.blade.php | 12 ++++++++++++ 8 files changed, 80 insertions(+), 4 deletions(-) create mode 100644 lang/de/events/github/star.php create mode 100644 lang/en/events/github/star.php create mode 100644 lang/ja/events/github/star.php create mode 100644 lang/vi/events/github/star.php create mode 100644 resources/views/events/github/star/created.blade.php create mode 100644 resources/views/events/github/star/deleted.blade.php diff --git a/lang/de/events/github/star.php b/lang/de/events/github/star.php new file mode 100644 index 0000000..695f574 --- /dev/null +++ b/lang/de/events/github/star.php @@ -0,0 +1,13 @@ + [ + 'title' => 'πŸŽ‰ New Star 🌟 from πŸ¦‘:user', + 'seeder' => 'πŸ‘€ Starer: :seeder_login πŸ‘€', + ], + + 'deleted' => [ + 'title' => '🚫 Star 🌟 Removed from πŸ¦‘:user', + 'remover' => 'πŸ‘€ Remover: :seeder_login πŸ‘€', + ], +]; diff --git a/lang/en/events/github/star.php b/lang/en/events/github/star.php new file mode 100644 index 0000000..695f574 --- /dev/null +++ b/lang/en/events/github/star.php @@ -0,0 +1,13 @@ + [ + 'title' => 'πŸŽ‰ New Star 🌟 from πŸ¦‘:user', + 'seeder' => 'πŸ‘€ Starer: :seeder_login πŸ‘€', + ], + + 'deleted' => [ + 'title' => '🚫 Star 🌟 Removed from πŸ¦‘:user', + 'remover' => 'πŸ‘€ Remover: :seeder_login πŸ‘€', + ], +]; diff --git a/lang/en/events/github/watch.php b/lang/en/events/github/watch.php index 706de28..f56af82 100644 --- a/lang/en/events/github/watch.php +++ b/lang/en/events/github/watch.php @@ -2,7 +2,7 @@ return [ 'started' => [ - 'title' => 'πŸŽ‰ New Started form πŸ¦‘:user', + 'title' => 'πŸŽ‰ (Watch) New Star 🌟 from πŸ¦‘:user', 'watcher' => 'πŸ‘€ Watcher: :sender_login πŸ‘€', ], ]; diff --git a/lang/ja/events/github/star.php b/lang/ja/events/github/star.php new file mode 100644 index 0000000..695f574 --- /dev/null +++ b/lang/ja/events/github/star.php @@ -0,0 +1,13 @@ + [ + 'title' => 'πŸŽ‰ New Star 🌟 from πŸ¦‘:user', + 'seeder' => 'πŸ‘€ Starer: :seeder_login πŸ‘€', + ], + + 'deleted' => [ + 'title' => '🚫 Star 🌟 Removed from πŸ¦‘:user', + 'remover' => 'πŸ‘€ Remover: :seeder_login πŸ‘€', + ], +]; diff --git a/lang/vi/events/github/star.php b/lang/vi/events/github/star.php new file mode 100644 index 0000000..695f574 --- /dev/null +++ b/lang/vi/events/github/star.php @@ -0,0 +1,13 @@ + [ + 'title' => 'πŸŽ‰ New Star 🌟 from πŸ¦‘:user', + 'seeder' => 'πŸ‘€ Starer: :seeder_login πŸ‘€', + ], + + 'deleted' => [ + 'title' => '🚫 Star 🌟 Removed from πŸ¦‘:user', + 'remover' => 'πŸ‘€ Remover: :seeder_login πŸ‘€', + ], +]; diff --git a/resources/views/events/github/meta/deleted.blade.php b/resources/views/events/github/meta/deleted.blade.php index 3ae9406..7aeb253 100644 --- a/resources/views/events/github/meta/deleted.blade.php +++ b/resources/views/events/github/meta/deleted.blade.php @@ -8,11 +8,11 @@ {!! __('tg-notifier::events/github/meta.delete.title') !!} @if(isset($payload->organization)) - {!! __('tg-notifier::events/github/meta.delete.organization', ['organization' => $payload->organization->login]) !!} +{!! __('tg-notifier::events/github/meta.delete.organization', ['organization' => $payload->organization->login]) !!} @endif @if(isset($payload->repository)) - {!! __('tg-notifier::events/github/meta.delete.full_name', ['full_name' => $payload->repository->full_name]) !!} +{!! __('tg-notifier::events/github/meta.delete.full_name', ['full_name' => $payload->repository->full_name]) !!} @endif @if(isset($payload->sender)) - {!! __('tg-notifier::events/github/meta.delete.sender', ['sender' => $payload->sender->login]) !!} +{!! __('tg-notifier::events/github/meta.delete.sender', ['sender' => $payload->sender->login]) !!} @endif diff --git a/resources/views/events/github/star/created.blade.php b/resources/views/events/github/star/created.blade.php new file mode 100644 index 0000000..5c9f6b2 --- /dev/null +++ b/resources/views/events/github/star/created.blade.php @@ -0,0 +1,12 @@ + + +{!! __('tg-notifier::events/github/star.created.title', [ + 'user' => "{$payload->repository->full_name}" + ] + ) !!} + +{!! __('tg-notifier::events/github/star.created.seeder', ['sender_login' => $payload->sender->login]) !!} diff --git a/resources/views/events/github/star/deleted.blade.php b/resources/views/events/github/star/deleted.blade.php new file mode 100644 index 0000000..ac016f9 --- /dev/null +++ b/resources/views/events/github/star/deleted.blade.php @@ -0,0 +1,12 @@ + + +{!! __('tg-notifier::events/github/star.deleted.title', [ + 'user' => "{$payload->repository->full_name}" + ] + ) !!} + +{!! __('tg-notifier::events/github/star.deleted.remover', ['sender_login' => $payload->sender->login]) !!} From 135fa7a3cf90aa84780351c451a8a4393e9ffb1f Mon Sep 17 00:00:00 2001 From: kenautomus Date: Fri, 9 Feb 2024 15:13:25 +0700 Subject: [PATCH 2/4] update lang --- lang/de/events/github/star.php | 4 ++-- lang/en/events/github/star.php | 4 ++-- lang/ja/events/github/star.php | 4 ++-- lang/vi/events/github/star.php | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/lang/de/events/github/star.php b/lang/de/events/github/star.php index 695f574..535d304 100644 --- a/lang/de/events/github/star.php +++ b/lang/de/events/github/star.php @@ -3,11 +3,11 @@ return [ 'created' => [ 'title' => 'πŸŽ‰ New Star 🌟 from πŸ¦‘:user', - 'seeder' => 'πŸ‘€ Starer: :seeder_login πŸ‘€', + 'seeder' => 'πŸ‘€ Starer: :sender_login πŸ‘€', ], 'deleted' => [ 'title' => '🚫 Star 🌟 Removed from πŸ¦‘:user', - 'remover' => 'πŸ‘€ Remover: :seeder_login πŸ‘€', + 'remover' => 'πŸ‘€ Remover: :sender_login πŸ‘€', ], ]; diff --git a/lang/en/events/github/star.php b/lang/en/events/github/star.php index 695f574..535d304 100644 --- a/lang/en/events/github/star.php +++ b/lang/en/events/github/star.php @@ -3,11 +3,11 @@ return [ 'created' => [ 'title' => 'πŸŽ‰ New Star 🌟 from πŸ¦‘:user', - 'seeder' => 'πŸ‘€ Starer: :seeder_login πŸ‘€', + 'seeder' => 'πŸ‘€ Starer: :sender_login πŸ‘€', ], 'deleted' => [ 'title' => '🚫 Star 🌟 Removed from πŸ¦‘:user', - 'remover' => 'πŸ‘€ Remover: :seeder_login πŸ‘€', + 'remover' => 'πŸ‘€ Remover: :sender_login πŸ‘€', ], ]; diff --git a/lang/ja/events/github/star.php b/lang/ja/events/github/star.php index 695f574..535d304 100644 --- a/lang/ja/events/github/star.php +++ b/lang/ja/events/github/star.php @@ -3,11 +3,11 @@ return [ 'created' => [ 'title' => 'πŸŽ‰ New Star 🌟 from πŸ¦‘:user', - 'seeder' => 'πŸ‘€ Starer: :seeder_login πŸ‘€', + 'seeder' => 'πŸ‘€ Starer: :sender_login πŸ‘€', ], 'deleted' => [ 'title' => '🚫 Star 🌟 Removed from πŸ¦‘:user', - 'remover' => 'πŸ‘€ Remover: :seeder_login πŸ‘€', + 'remover' => 'πŸ‘€ Remover: :sender_login πŸ‘€', ], ]; diff --git a/lang/vi/events/github/star.php b/lang/vi/events/github/star.php index 695f574..535d304 100644 --- a/lang/vi/events/github/star.php +++ b/lang/vi/events/github/star.php @@ -3,11 +3,11 @@ return [ 'created' => [ 'title' => 'πŸŽ‰ New Star 🌟 from πŸ¦‘:user', - 'seeder' => 'πŸ‘€ Starer: :seeder_login πŸ‘€', + 'seeder' => 'πŸ‘€ Starer: :sender_login πŸ‘€', ], 'deleted' => [ 'title' => '🚫 Star 🌟 Removed from πŸ¦‘:user', - 'remover' => 'πŸ‘€ Remover: :seeder_login πŸ‘€', + 'remover' => 'πŸ‘€ Remover: :sender_login πŸ‘€', ], ]; From 1b914ff0f5282932e5ae7dc57cc6f28a0801fff0 Mon Sep 17 00:00:00 2001 From: kenautomus <69226680+kenautomus@users.noreply.github.com> Date: Fri, 9 Feb 2024 18:41:23 +0700 Subject: [PATCH 3/4] Update translations for the star event Co-authored-by: Tan Nguyen --- lang/vi/events/github/star.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lang/vi/events/github/star.php b/lang/vi/events/github/star.php index 535d304..42bc154 100644 --- a/lang/vi/events/github/star.php +++ b/lang/vi/events/github/star.php @@ -2,12 +2,12 @@ return [ 'created' => [ - 'title' => 'πŸŽ‰ New Star 🌟 from πŸ¦‘:user', - 'seeder' => 'πŸ‘€ Starer: :sender_login πŸ‘€', + 'title' => 'πŸŽ‰ NhαΊ­n dαΊ₯u sao mα»›i 🌟 tα»« πŸ¦‘:user', + 'seeder' => 'πŸ‘€ Người gαΊ―n dαΊ₯u sao: :sender_login πŸ‘€', ], 'deleted' => [ - 'title' => '🚫 Star 🌟 Removed from πŸ¦‘:user', - 'remover' => 'πŸ‘€ Remover: :sender_login πŸ‘€', + 'title' => '🚫 DαΊ₯u sao Δ‘Γ£ bα»‹ hủy tα»« πŸ¦‘:user', + 'remover' => 'πŸ‘€ Người hủy bỏ: :sender_login πŸ‘€', ], ]; From 771f2c134e7e3d6717668fad3401b6c5a4798095 Mon Sep 17 00:00:00 2001 From: kenautomus Date: Fri, 9 Feb 2024 18:56:20 +0700 Subject: [PATCH 4/4] update translations for watch event --- lang/de/events/github/watch.php | 4 ++-- lang/ja/events/github/watch.php | 4 ++-- lang/vi/events/github/watch.php | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lang/de/events/github/watch.php b/lang/de/events/github/watch.php index 706de28..1399b59 100644 --- a/lang/de/events/github/watch.php +++ b/lang/de/events/github/watch.php @@ -2,7 +2,7 @@ return [ 'started' => [ - 'title' => 'πŸŽ‰ New Started form πŸ¦‘:user', - 'watcher' => 'πŸ‘€ Watcher: :sender_login πŸ‘€', + 'title' => 'πŸŽ‰ (betrachten) Neuer Stern 🌟 von πŸ¦‘:user', + 'watcher' => 'πŸ‘€ Betrachter: :sender_login πŸ‘€', ], ]; diff --git a/lang/ja/events/github/watch.php b/lang/ja/events/github/watch.php index 706de28..b62317d 100644 --- a/lang/ja/events/github/watch.php +++ b/lang/ja/events/github/watch.php @@ -2,7 +2,7 @@ return [ 'started' => [ - 'title' => 'πŸŽ‰ New Started form πŸ¦‘:user', - 'watcher' => 'πŸ‘€ Watcher: :sender_login πŸ‘€', + 'title' => 'πŸŽ‰ (ζ™‚θ¨ˆ) 新しいスター 🌟 from πŸ¦‘:user', + 'watcher' => 'πŸ‘€ ウォッチャー: :sender_login πŸ‘€', ], ]; diff --git a/lang/vi/events/github/watch.php b/lang/vi/events/github/watch.php index 706de28..36a81c1 100644 --- a/lang/vi/events/github/watch.php +++ b/lang/vi/events/github/watch.php @@ -2,7 +2,7 @@ return [ 'started' => [ - 'title' => 'πŸŽ‰ New Started form πŸ¦‘:user', - 'watcher' => 'πŸ‘€ Watcher: :sender_login πŸ‘€', + 'title' => 'πŸŽ‰ (Watch) DαΊ₯u sao mα»›i 🌟 tα»« πŸ¦‘:user', + 'watcher' => 'πŸ‘€ Người theo dΓ΅i: :sender_login πŸ‘€', ], ];