refactor: standardize notification keys and add cheerful tone variants to language files
This commit is contained in:
parent
d7d53c0e8b
commit
d858a47023
@ -46,7 +46,7 @@ protected function setUp(): void
|
||||
->get()
|
||||
->each(function ($admin) use ($record, $cooperationMedia): void {
|
||||
$admin->notify(new BroadcastNotification([
|
||||
'title' => CheerfulNotification::getByKey('cooperation.offer_rejected_media'),
|
||||
'title' => CheerfulNotification::getByKey('cooperation.offer_rejected_by_media'),
|
||||
'body' => CheerfulNotification::getByKey('notification.media_rejected_offer', ['cooperationMedia__partnerMedia__name' => $cooperationMedia->partnerMedia->name, 'record__title' => $record->title]),
|
||||
]));
|
||||
});
|
||||
|
||||
@ -185,7 +185,7 @@ public function table(Table $table): Table
|
||||
$user = auth()->user();
|
||||
|
||||
$admin->notify(new BroadcastNotification([
|
||||
'title' => CheerfulNotification::getByKey('auto_generated.msg_bukti_tayang_kerja_sama_baru'),
|
||||
'title' => CheerfulNotification::getByKey('cooperation.new_report'),
|
||||
'body' => CheerfulNotification::getByKey('notification.user_submitted_report', ['user__name' => $user->name, 'record__title' => $record->title, 'this__getOwnerRecord____title' => $this->getOwnerRecord()->title]),
|
||||
'action' => [
|
||||
Action::make('view')
|
||||
|
||||
@ -95,7 +95,7 @@ public function table(Table $table): Table
|
||||
DeleteBulkAction::make()
|
||||
->successNotification(
|
||||
fn () => CheerfulNotification::success(
|
||||
CheerfulNotification::getByKey('cooperation.assignment_success_dihapus'),
|
||||
CheerfulNotification::getByKey('cooperation.assignment_deleted_success'),
|
||||
CheerfulNotification::getByKey('cooperation.bulk_assignment_deleted')
|
||||
)
|
||||
),
|
||||
|
||||
@ -54,7 +54,7 @@ protected function setUp(): void
|
||||
// Notify User
|
||||
$record->user?->notify(new BroadcastNotification([
|
||||
'title' => CheerfulNotification::getByKey('data_change.deletion_request_approved'),
|
||||
'body' => CheerfulNotification::getByKey('data_change.deletion_request_title_untuk_telah', ['record__change_reason' => $record->change_reason]),
|
||||
'body' => CheerfulNotification::getByKey('notification.data_deletion_approved', ['record__change_reason' => $record->change_reason]),
|
||||
]));
|
||||
|
||||
return;
|
||||
|
||||
@ -102,7 +102,7 @@ protected function setUp(): void
|
||||
->get()
|
||||
->each(function ($admin) use ($dataChangeRequest, $user): void {
|
||||
$admin->notify(new BroadcastNotification([
|
||||
'title' => CheerfulNotification::getByKey('data_change.addition_jurnalis_baru'),
|
||||
'title' => CheerfulNotification::getByKey('journalist.new_addition_notif'),
|
||||
'body' => CheerfulNotification::getByKey('notification.user_added_journalist', ['user__name' => $user->name]),
|
||||
'action' => [
|
||||
Action::make('view')
|
||||
|
||||
@ -256,11 +256,20 @@
|
||||
],
|
||||
'alert' => [
|
||||
'approved' => [
|
||||
'body' => 'Verifikasi Anda telah diterima dan disetujui oleh admin. Sekarang Anda sudah resmi terverifikasi dan bekerja sama dengan kami!',
|
||||
'body' => [
|
||||
'cheerful' => 'Hore! Verifikasi Anda telah diterima dan disetujui oleh admin. Sekarang Anda sudah resmi terverifikasi dan bekerja sama dengan kami! 🎉✨',
|
||||
'formal' => 'Verifikasi Anda telah diterima dan disetujui oleh admin. Sekarang Anda sudah resmi terverifikasi dan bekerja sama dengan kami!',
|
||||
],
|
||||
],
|
||||
'pending' => [
|
||||
'title' => 'Menunggu Verifikasi',
|
||||
'body' => 'Data Anda sedang dalam proses verifikasi oleh admin. Mohon tunggu.',
|
||||
'title' => [
|
||||
'cheerful' => 'Menunggu Verifikasi ⏳✨',
|
||||
'formal' => 'Menunggu Verifikasi',
|
||||
],
|
||||
'body' => [
|
||||
'cheerful' => 'Data Anda sedang dalam proses verifikasi oleh admin. Mohon tunggu sebentar ya, kami akan segera mengabarinya! 😊⏳',
|
||||
'formal' => 'Data Anda sedang dalam proses verifikasi oleh admin. Mohon tunggu.',
|
||||
],
|
||||
],
|
||||
],
|
||||
'admin' => [
|
||||
@ -720,6 +729,18 @@
|
||||
'cheerful' => 'Sip! Data tersebut sudah berhasil dihapus secara permanen dari sistem sebagaimana permintaanmu. ✨🚮',
|
||||
'formal' => 'Data tersebut telah berhasil dihapus dari sistem sesuai permohonan.',
|
||||
],
|
||||
'change_request_approved' => [
|
||||
'cheerful' => 'Perubahan Disetujui! ✅🚀',
|
||||
'formal' => 'Persetujuan Perubahan Data',
|
||||
],
|
||||
'change_request_rejected' => [
|
||||
'cheerful' => 'Yah, Perubahan Ditolak 😔',
|
||||
'formal' => 'Penolakan Perubahan Data',
|
||||
],
|
||||
'deletion_request_approved' => [
|
||||
'cheerful' => 'Penghapusan Disetujui! 🗑️🚀',
|
||||
'formal' => 'Persetujuan Penghapusan Data',
|
||||
],
|
||||
],
|
||||
'visitor' => [
|
||||
'empty_state' => [
|
||||
|
||||
Loading…
Reference in New Issue
Block a user