Skip to content

fix:[LAR-119] fix non-existent route link and translate page #233

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions lang/en/pages/notification.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?php

declare(strict_types=1);

return [

'empty' => 'You have no unread notifications.',
'new_content' => 'Start new forum content ?',
'choose_content' => 'Start by choosing the type of content you want to create.',
'article_action' => 'Write an article',
'share_content' => 'Share a tutorial or important information.',
'start_discussion' => 'Start a discussion.',
'start_discussion_description_text' => 'You\'d like to make a contribution.',
'ask_help' => 'Ask for help',
'ask_help_description' => 'Got a problem? Let\'s find a solution together.',
];
16 changes: 16 additions & 0 deletions lang/fr/pages/notification.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?php

declare(strict_types=1);

return [

'empty' => 'Vous n\'avez pas de notifications non lues.',
'new_content' => 'Lancer un nouveau contenu forum ?',
'choose_content' => ' Commencer par choisir quel type de contenu vous voulez créer.',
'article_action' => 'Rédiger un article',
'share_content' => 'Partager un tutoriel ou une information importante.',
'start_discussion' => ' Démarrer une discussion',
'start_discussion_description_text' => 'Vous souhaitez apporter une pierre à l\'édifice.',
'ask_help' => 'Demander de l\'aide',
'ask_help_description' => ' Vous avez un problème ? Trouvons ensemble une solution.',
];
22 changes: 11 additions & 11 deletions resources/views/livewire/notifications-page.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,14 @@ class="mx-auto size-10 text-primary-600"
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"
/>
</svg>
<p class="mt-1 text-sm leading-5 text-gray-500 dark:text-gray-400">Vous n'avez pas de notifications non lues.</p>
<p class="mt-1 text-sm leading-5 text-gray-500 dark:text-gray-400">{{ __('pages/notification.empty') }}</p>
</div>
</div>

<div class="mx-auto mt-10 max-w-lg">
<h2 class="font-sans text-lg font-medium text-gray-900">Lancer un nouveau contenu ?</h2>
<h2 class="font-sans text-lg font-medium text-gray-900">{{ __('pages/notification.new_content') }}</h2>
<p class="mt-1 text-sm font-normal text-gray-500 dark:text-gray-400">
Commencer par choisir quel type de contenu vous voulez créer.
{{ __('pages/notification.choose_content') }}
</p>
<ul role="list" class="mt-6 divide-y divide-skin-base border-b border-t border-skin-base">
<li>
Expand All @@ -83,13 +83,13 @@ class="size-6 text-white"
</div>
<div class="min-w-0 flex-1">
<div class="font-sans text-sm font-medium text-gray-900">
<a href="{{ route('articles.new') }}">
<a onclick="Livewire.dispatch('openPanel', { component: 'components.slideovers.article-form' })">
<span class="absolute inset-0" aria-hidden="true"></span>
Rédiger un article
{{ __('pages/notification.article_action') }}
</a>
</div>
<p class="text-sm font-normal text-gray-500 dark:text-gray-400">
Partager un tutoriel ou une information importante.
{{ __('pages/notification.share_content') }}
</p>
</div>
<div class="shrink-0 self-center">
Expand Down Expand Up @@ -131,11 +131,11 @@ class="size-6 text-white"
<div class="font-sans text-sm font-medium text-gray-900">
<a href="{{ route('discussions.new') }}">
<span class="absolute inset-0" aria-hidden="true"></span>
Démarrer une discussion
{{ __('pages/notification.start_discussion') }}
</a>
</div>
<p class="text-sm font-normal text-gray-500 dark:text-gray-400">
Vous souhaitez apporter une pierre à l'édifice.
{{ __('pages/notification.start_discussion_description_text') }}
</p>
</div>
<div class="shrink-0 self-center">
Expand Down Expand Up @@ -175,13 +175,13 @@ class="size-6 text-white"
</div>
<div class="min-w-0 flex-1">
<div class="text-sm font-medium text-gray-900">
<a href="{{ route('forum.new') }}">
<a onclick="Livewire.dispatch('openPanel', { component: 'components.slideovers.thread-form' })">
<span class="absolute inset-0" aria-hidden="true"></span>
Demander de l'aide
{{ __('pages/notification.ask_help') }}
</a>
</div>
<p class="text-sm font-normal text-gray-500 dark:text-gray-400">
Vous avez un problème ? Trouvons ensemble une solution.
{{ __('pages/notification.ask_help_description') }}
</p>
</div>
<div class="shrink-0 self-center">
Expand Down
Loading