11
11
@hasanyrole (' admin|moderator' )
12
12
<x-button type =" button" wire:click =" store" >
13
13
<x-loader class =" text-white" wire:loading wire:target =" store" />
14
- {{ isset ($article ) ? ' Enregistrer' : ' Publier' } }
14
+ {{ isset ($article ) ? __ ( ' Enregistrer' ): __ ( ' Publier' ) } }
15
15
</x-button >
16
16
@else
17
17
@if (isset ($article ) )
@@ -56,17 +56,11 @@ class="origin-top-right absolute right-0 mt-2 -mr-1 w-56 rounded-md shadow-lg bg
56
56
@else
57
57
<x-button type =" button" wire:click =" submit" >
58
58
<x-loader class =" text-white" wire:loading wire:target =" submit" />
59
- Soumettre
59
+ {{ __ ( ' Soumettre' ) } }
60
60
</x-button >
61
61
@endif
62
62
@endhasanyrole
63
63
64
- @if (! isset ($article ) && ! Auth:: user ()-> hasAnyRole ([' admin' , ' moderator' ]) )
65
- <x-default-button type =" button" wire:click =" draft" >
66
- Brouillon
67
- </x-default-button >
68
- @endif
69
-
70
64
<button type =" button" @click =" open = true;" class =" inline-flex justify-center py-2 px-4 text-skin-base hover:text-skin-muted focus:outline-none" >
71
65
<x-heroicon-o-cog class =" h-5 w-5" />
72
66
</button >
@@ -91,11 +85,11 @@ class="w-screen max-w-md"
91
85
<div class =" px-4 sm:px-6" >
92
86
<div class =" flex items-start justify-between" >
93
87
<h2 class =" text-lg font-medium text-skin-inverted" id =" slide-over-title" >
94
- Paramètres avancés
88
+ {{ __ ( ' Paramètres avancés' ) } }
95
89
</h2 >
96
90
<div class =" ml-3 h-7 flex items-center" >
97
91
<button type =" button" class =" bg-skin-card rounded-md text-skin-muted hover:text-skin-base focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-body focus:ring-green-500" @click =" open = false" >
98
- <span class =" sr-only" >Close panel </span >
92
+ <span class =" sr-only" >{{ __ ( ' Fermer ' ) } } </span >
99
93
<svg xmlns =" http://www.w3.org/2000/svg" fill =" none" viewBox =" 0 0 24 24" stroke-width =" 1.5" stroke =" currentColor" class =" w-6 h-6" >
100
94
<path stroke-linecap =" round" stroke-linejoin =" round" d =" M6 18L18 6M6 6l12 12" />
101
95
</svg >
@@ -106,7 +100,7 @@ class="w-screen max-w-md"
106
100
<div class =" mt-6 relative flex-1 px-4 sm:px-6" >
107
101
<div class =" h-full" aria-hidden =" true" >
108
102
<x-label for =" cover_photo" >
109
- Image de couverture
103
+ {{ __ ( ' Image de couverture' ) } }
110
104
</x-label >
111
105
<div class =" mt-2" >
112
106
<x-forms .single-upload
@@ -121,7 +115,9 @@ class="w-screen max-w-md"
121
115
122
116
<div x-data =" { on: @entangle (' show_toc' ) }" class =" mt-8 flex-grow flex items-center justify-between" >
123
117
<div >
124
- <dt class =" text-sm leading-7 font-semibold text-skin-base" >Afficher le Sommaire</dt >
118
+ <dt class =" text-sm leading-7 font-semibold text-skin-base" >
119
+ {{ __ (' Afficher le Sommaire' ) } }
120
+ </dt >
125
121
</div >
126
122
<button type =" button"
127
123
class =" relative inline-flex items-center shrink-0 h-6 w-11 border border-skin-base rounded-full cursor-pointer transition-colors ease-in-out duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-green-500 bg-skin-card-muted"
@@ -140,18 +136,20 @@ class="relative inline-flex items-center shrink-0 h-6 w-11 border border-skin-ba
140
136
</div >
141
137
142
138
<div class =" mt-8" >
143
- <x-label for =" published_at" >Date de publication</x-label >
139
+ <x-label for =" published_at" >{{ __ ( ' Date de publication' ) } } </x-label >
144
140
<x-input wire:model.debounce.500ms =" published_at" id =" published_at" name =" published_at" class =" mt-1" type =" date" autocomplete =" off" />
145
141
</div >
146
142
147
143
<div class =" mt-8" >
148
- <x-label for =" slug" >URL Slug</x-label >
144
+ <x-label for =" slug" >{{ __ ( ' URL Slug' ) } } </x-label >
149
145
<x-input wire:model.debounce.500ms =" slug" id =" slug" name =" slug" class =" mt-1" type =" text" autocomplete =" off" required />
150
146
</div >
151
147
152
148
<div class =" mt-8" >
153
- <x-label for =" canonical_url" >Canonical URL</x-label >
154
- <span class =" text-xs leading-3 text-skin-muted" >Modifiez si l'article a été publié pour la première fois ailleurs (comme sur votre propre blog).</span >
149
+ <x-label for =" canonical_url" >{{ __ (' Canonical URL' ) } } </x-label >
150
+ <span class =" text-xs leading-3 text-skin-muted" >
151
+ {{ __ (' Modifiez si l\' article a été publié pour la première fois ailleurs (comme sur votre propre blog).' ) } }
152
+ </span >
155
153
<x-input wire:model.defer =" canonical_url" id =" canonical_url" name =" canonical_url" class =" mt-1" type =" text" autocomplete =" off" />
156
154
</div >
157
155
@@ -192,7 +190,7 @@ class="block w-full h-auto px-0 py-4 text-3xl sm:text-4xl font-bold placeholder-
192
190
/>
193
191
<livewire:markdown-x :content =" $body" />
194
192
<div class =" mt-6 text-right text-skin-base" >
195
- Temps de lecture estimé : <span class =" text-skin-inverted" >{{ $reading_time } } min</span >
193
+ {{ __ ( ' Temps de lecture estimé :' ) } } <span class =" text-skin-inverted" >{{ $reading_time } } min</span >
196
194
</div >
197
195
</div >
198
196
</main >
0 commit comments