Skip to content

Commit 04651d5

Browse files
fix:[LAR-119] fix non-existent route link and translate page (#233)
2 parents 76d76df + fdc8681 commit 04651d5

File tree

3 files changed

+50
-16
lines changed

3 files changed

+50
-16
lines changed

lang/en/pages/notification.php

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
return [
6+
7+
'empty' => 'You have no unread notifications.',
8+
'new_content' => 'Start new forum content ?',
9+
'choose_content' => 'Start by choosing the type of content you want to create.',
10+
'article_action' => 'Write an article',
11+
'share_content' => 'Share a tutorial or important information.',
12+
'start_discussion' => 'Start a discussion.',
13+
'start_discussion_description_text' => 'You\'d like to make a contribution.',
14+
'ask_help' => 'Ask for help',
15+
'ask_help_description' => 'Got a problem? Let\'s find a solution together.',
16+
17+
];

lang/fr/pages/notification.php

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
return [
6+
7+
'empty' => 'Vous n\'avez pas de notifications non lues.',
8+
'new_content' => 'Lancer un nouveau contenu forum ?',
9+
'choose_content' => ' Commencer par choisir quel type de contenu vous voulez créer.',
10+
'article_action' => 'Rédiger un article',
11+
'share_content' => 'Partager un tutoriel ou une information importante.',
12+
'start_discussion' => ' Démarrer une discussion',
13+
'start_discussion_description_text' => 'Vous souhaitez apporter une pierre à l\'édifice.',
14+
'ask_help' => 'Demander de l\'aide',
15+
'ask_help_description' => ' Vous avez un problème ? Trouvons ensemble une solution.',
16+
17+
];

resources/views/livewire/notifications-page.blade.php

+16-16
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<div>
55
<h2
66
id="notification-date-{{ Str::slug($date) }}"
7-
class="inline-flex inline-flex items-center gap-x-3 rounded-full bg-skin-primary bg-opacity-20 px-2.5 py-1.5 font-sans text-sm font-medium text-primary-600"
7+
class="inline-flex items-center gap-x-3 rounded-full bg-skin-primary bg-opacity-20 px-2.5 py-1.5 font-heading text-sm font-medium text-primary-600"
88
>
99
<svg
1010
xmlns="http://www.w3.org/2000/svg"
@@ -51,14 +51,14 @@ class="mx-auto size-10 text-primary-600"
5151
d="M14.857 17.082a23.848 23.848 0 005.454-1.31A8.967 8.967 0 0118 9.75v-.7V9A6 6 0 006 9v.75a8.967 8.967 0 01-2.312 6.022c1.733.64 3.56 1.085 5.455 1.31m5.714 0a24.255 24.255 0 01-5.714 0m5.714 0a3 3 0 11-5.714 0"
5252
/>
5353
</svg>
54-
<p class="mt-1 text-sm leading-5 text-gray-500 dark:text-gray-400">Vous n'avez pas de notifications non lues.</p>
54+
<p class="mt-1 text-sm leading-5 text-gray-500 dark:text-gray-400">{{ __('pages/notification.empty') }}</p>
5555
</div>
5656
</div>
5757

5858
<div class="mx-auto mt-10 max-w-lg">
59-
<h2 class="font-sans text-lg font-medium text-gray-900">Lancer un nouveau contenu ?</h2>
59+
<h2 class="font-heading text-lg font-medium text-gray-900">{{ __('pages/notification.new_content') }}</h2>
6060
<p class="mt-1 text-sm font-normal text-gray-500 dark:text-gray-400">
61-
Commencer par choisir quel type de contenu vous voulez créer.
61+
{{ __('pages/notification.choose_content') }}
6262
</p>
6363
<ul role="list" class="mt-6 divide-y divide-skin-base border-b border-t border-skin-base">
6464
<li>
@@ -83,13 +83,13 @@ class="size-6 text-white"
8383
</div>
8484
<div class="min-w-0 flex-1">
8585
<div class="font-sans text-sm font-medium text-gray-900">
86-
<a href="{{ route('articles.new') }}">
86+
<x-buttons.default onclick="Livewire.dispatch('openPanel', { component: 'components.slideovers.article-form' })">
8787
<span class="absolute inset-0" aria-hidden="true"></span>
88-
Rédiger un article
89-
</a>
88+
{{ __('pages/notification.article_action') }}
89+
</x-buttons.default>
9090
</div>
9191
<p class="text-sm font-normal text-gray-500 dark:text-gray-400">
92-
Partager un tutoriel ou une information importante.
92+
{{ __('pages/notification.share_content') }}
9393
</p>
9494
</div>
9595
<div class="shrink-0 self-center">
@@ -129,13 +129,13 @@ class="size-6 text-white"
129129
</div>
130130
<div class="min-w-0 flex-1">
131131
<div class="font-sans text-sm font-medium text-gray-900">
132-
<a href="{{ route('discussions.new') }}">
132+
<x-buttons.default href="{{ route('discussions.new') }}">
133133
<span class="absolute inset-0" aria-hidden="true"></span>
134-
Démarrer une discussion
135-
</a>
134+
{{ __('pages/notification.start_discussion') }}
135+
</x-buttons.default>
136136
</div>
137137
<p class="text-sm font-normal text-gray-500 dark:text-gray-400">
138-
Vous souhaitez apporter une pierre à l'édifice.
138+
{{ __('pages/notification.start_discussion_description_text') }}
139139
</p>
140140
</div>
141141
<div class="shrink-0 self-center">
@@ -175,13 +175,13 @@ class="size-6 text-white"
175175
</div>
176176
<div class="min-w-0 flex-1">
177177
<div class="text-sm font-medium text-gray-900">
178-
<a href="{{ route('forum.new') }}">
178+
<x-buttons.default onclick="Livewire.dispatch('openPanel', { component: 'components.slideovers.thread-form' })">
179179
<span class="absolute inset-0" aria-hidden="true"></span>
180-
Demander de l'aide
181-
</a>
180+
{{ __('pages/notification.ask_help') }}
181+
</x-buttons.default>
182182
</div>
183183
<p class="text-sm font-normal text-gray-500 dark:text-gray-400">
184-
Vous avez un problème ? Trouvons ensemble une solution.
184+
{{ __('pages/notification.ask_help_description') }}
185185
</p>
186186
</div>
187187
<div class="shrink-0 self-center">

0 commit comments

Comments
 (0)