Skip to content

Commit

Permalink
Fixed date display bug
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkBrines committed Dec 6, 2023
1 parent 40b688a commit 41b2748
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions resources/lang/en/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
extended_locale: fr-FR
1 change: 0 additions & 1 deletion resources/lang/en/ui.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ tutorials:
title: Tutorials
description: You'll find tutorials on how to build the PaxoPhone and other Paxo projects.
last_update: Last update
date_format: en-US

contributors:
seo_description: List of Paxo contributors.
Expand Down
1 change: 1 addition & 0 deletions resources/lang/fr/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
extended_locale: en-US
1 change: 0 additions & 1 deletion resources/lang/fr/ui.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ tutorials:
title: Tutoriels
description: Vous trouverez les tutos pour la conception du PaxoPhone ainsi que les autres projets signés Paxo.
last_update: Dernière mise à jour
date_format: fr-FR

contributors:
seo_description: Liste des contributeurs au projet Paxo.
Expand Down
9 changes: 5 additions & 4 deletions resources/views/tutorials/index.edge
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
@!layout('base/main')

@section('title')
{{ t("ui.tutorials.title") }}
{{ t("ui.tutorials.title") }}
@endsection

@section('seo')
<meta name="description"
content="{{ t("ui.tutorials.seo_description") }}">
<meta name="description" content="{{ t(" ui.tutorials.seo_description") }}">
<meta name="robots" content="index">
@endsection

Expand All @@ -23,7 +22,9 @@
<div class="card">
<div>
<div class="card-title">{{ tutorial.name }}</div>
<div class="card-description">{{ tutorial.description }} ({{ t("ui.tutorials.last_update") }} : {{ tutorial.updatedAt.toLocaleString({year:'numeric',month:'numeric',day:'numeric',hour:'numeric',minute:'numeric'}, {locale: '{{ ui.tutorials.date_format }}'}) }})</div>
<div class="card-description">{{ tutorial.description }} ({{ t("ui.tutorials.last_update") }} : {{
tutorial.updatedAt.toLocaleString({year:'numeric',month:'numeric',day:'numeric',hour:'numeric',minute:'numeric'},
{ locale: t('meta.extended_locale') }) }})</div>
</div>
</div>
</a>
Expand Down

0 comments on commit 41b2748

Please sign in to comment.