Skip to content

Commit 122d9f9

Browse files
feat: [LAR-35] add translations and changelog github action (#275)
2 parents 16c53be + 40fa85a commit 122d9f9

File tree

5 files changed

+78
-11
lines changed

5 files changed

+78
-11
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: "Update Changelog"
2+
3+
on:
4+
release:
5+
types: [released]
6+
7+
jobs:
8+
update:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Checkout code
13+
uses: actions/checkout@v3
14+
with:
15+
ref: main
16+
17+
- name: Update Changelog
18+
uses: stefanzweifel/changelog-updater-action@v1
19+
with:
20+
latest-version: ${{ github.event.release.name }}
21+
release-notes: ${{ github.event.release.body }}
22+
23+
- name: Commit updated CHANGELOG
24+
uses: stefanzweifel/git-auto-commit-action@v4
25+
with:
26+
branch: main
27+
commit_message: Update CHANGELOG
28+
file_pattern: CHANGELOG.md

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Changelog
2+
3+
All notable changes to `laravel.cm` will be documented in this file.
4+
5+
Updates should follow the [Keep a CHANGELOG](http://keepachangelog.com/) principles.

lang/vendor/livewire-ui-spotlight/en/spotlight.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,14 @@
44

55
return [
66
'placeholder' => 'What do you want to do?',
7+
'type' => 'Type',
8+
'section' => [
9+
'article' => 'Article',
10+
'article_help' => 'to search in articles',
11+
'discussion' => 'Discussion',
12+
'discussion_help' => 'to search in discussions',
13+
'thread' => 'Sujet',
14+
'thread_help' => 'to search for a topic in the forum',
15+
],
16+
'global_help' => 'or, type in a section to quickly access that page.',
717
];

lang/vendor/livewire-ui-spotlight/fr/spotlight.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,14 @@
44

55
return [
66
'placeholder' => 'Que souhaitez-vous rechercher ?',
7+
'type' => 'Tapez',
8+
'section' => [
9+
'article' => 'Article',
10+
'article_help' => 'pour rechercher dans les articles',
11+
'discussion' => 'Discussion',
12+
'discussion_help' => 'pour rechercher dans les discussions',
13+
'thread' => 'Sujet',
14+
'thread_help' => 'pour rechercher un sujet dans le forum',
15+
],
16+
'global_help' => 'ou, tapez une section pour accéder rapidement à cette page.',
717
];

resources/views/vendor/livewire-ui-spotlight/spotlight.blade.php

Lines changed: 25 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -41,27 +41,41 @@ class="fixed flex items-center justify-center w-full h-auto px-4 pt-16 text-gray
4141
<div class="w-full max-w-lg">
4242
<div class="overflow-hidden divide-y divide-gray-300 bg-gray-200 rounded-xl shadow-xl bg-opacity-20">
4343
<div class="flex items-center p-5">
44-
<div class="px-2 text-sm text-gray-200">Tapez </div>
45-
<div class="px-3 py-1.5 text-xs font-medium text-gray-100 uppercase bg-gray-900 rounded-lg">Article</div>
46-
<div class="px-2 text-sm text-gray-200">pour rechercher dans les articles</div>
44+
<div class="px-2 text-sm text-gray-200">{{ __('livewire-ui-spotlight::spotlight.type') }} </div>
45+
<div class="px-3 py-1.5 text-xs font-medium text-gray-100 uppercase bg-gray-900 rounded-lg">
46+
{{ __('livewire-ui-spotlight::spotlight.section.article') }}
47+
</div>
48+
<div class="px-2 text-sm text-gray-200">
49+
{{ __('livewire-ui-spotlight::spotlight.section.article_help') }}
50+
</div>
4751
</div>
4852
<div class="flex items-center p-5">
49-
<div class="px-2 text-sm text-gray-200">Tapez </div>
50-
<div class="px-3 py-1.5 text-xs font-medium text-gray-100 uppercase bg-gray-900 rounded-lg">Discussion</div>
51-
<div class="px-2 text-sm text-gray-200">pour rechercher dans les discussions</div>
53+
<div class="px-2 text-sm text-gray-200">{{ __('livewire-ui-spotlight::spotlight.type') }} </div>
54+
<div class="px-3 py-1.5 text-xs font-medium text-gray-100 uppercase bg-gray-900 rounded-lg">
55+
{{ __('livewire-ui-spotlight::spotlight.section.discussion') }}
56+
</div>
57+
<div class="px-2 text-sm text-gray-200">
58+
{{ __('livewire-ui-spotlight::spotlight.section.discussion_help') }}
59+
</div>
5260
</div>
5361
<div class="flex items-center p-5">
54-
<div class="px-2 text-sm text-gray-200">Tapez </div>
55-
<div class="px-3 py-1.5 text-xs font-medium text-gray-100 uppercase bg-gray-900 rounded-lg">Sujet</div>
56-
<div class="px-2 text-sm text-gray-200">pour rechercher un sujet dans le forum</div>
62+
<div class="px-2 text-sm text-gray-200">{{ __('livewire-ui-spotlight::spotlight.type') }} </div>
63+
<div class="px-3 py-1.5 text-xs font-medium text-gray-100 uppercase bg-gray-900 rounded-lg">
64+
{{ __('livewire-ui-spotlight::spotlight.section.thread') }}
65+
</div>
66+
<div class="px-2 text-sm text-gray-200">
67+
{{ __('livewire-ui-spotlight::spotlight.section.thread_help') }}
68+
</div>
5769
</div>
5870
</div>
59-
<div class="px-2 mt-5 text-xs text-center text-gray-200 opacity-50">ou, tapez une section pour accéder rapidement à cette page.</div>
71+
<div class="px-2 mt-5 text-xs text-center text-gray-200 opacity-50">
72+
{{ __('livewire-ui-spotlight::spotlight.global_help') }}
73+
</div>
6074
</div>
6175
</template>
6276
<template x-if="inputPlaceholder != '{{ trans('livewire-ui-spotlight::spotlight.placeholder') }}'">
6377
<div class="w-full max-w-lg p-5 bg-gray-100 rounded-lg shadow-xl bg-opacity-10">
64-
<span>Suivant, </span>
78+
<span>{{ __('pagination.next') }}, </span>
6579
<span x-text="inputPlaceholder" class="lowercase"></span>
6680
</div>
6781
</template>

0 commit comments

Comments
 (0)