Skip to content

feat: [LAR-35] add translations and changelog github action #275

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
merged 1 commit into from
Dec 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
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
28 changes: 28 additions & 0 deletions .github/workflows/update-changelog.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: "Update Changelog"

on:
release:
types: [released]

jobs:
update:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3
with:
ref: main

- name: Update Changelog
uses: stefanzweifel/changelog-updater-action@v1
with:
latest-version: ${{ github.event.release.name }}
release-notes: ${{ github.event.release.body }}

- name: Commit updated CHANGELOG
uses: stefanzweifel/git-auto-commit-action@v4
with:
branch: main
commit_message: Update CHANGELOG
file_pattern: CHANGELOG.md
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Changelog

All notable changes to `laravel.cm` will be documented in this file.

Updates should follow the [Keep a CHANGELOG](http://keepachangelog.com/) principles.
10 changes: 10 additions & 0 deletions lang/vendor/livewire-ui-spotlight/en/spotlight.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,14 @@

return [
'placeholder' => 'What do you want to do?',
'type' => 'Type',
'section' => [
'article' => 'Article',
'article_help' => 'to search in articles',
'discussion' => 'Discussion',
'discussion_help' => 'to search in discussions',
'thread' => 'Sujet',
'thread_help' => 'to search for a topic in the forum',
],
'global_help' => 'or, type in a section to quickly access that page.',
];
10 changes: 10 additions & 0 deletions lang/vendor/livewire-ui-spotlight/fr/spotlight.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,14 @@

return [
'placeholder' => 'Que souhaitez-vous rechercher ?',
'type' => 'Tapez',
'section' => [
'article' => 'Article',
'article_help' => 'pour rechercher dans les articles',
'discussion' => 'Discussion',
'discussion_help' => 'pour rechercher dans les discussions',
'thread' => 'Sujet',
'thread_help' => 'pour rechercher un sujet dans le forum',
],
'global_help' => 'ou, tapez une section pour accéder rapidement à cette page.',
];
36 changes: 25 additions & 11 deletions resources/views/vendor/livewire-ui-spotlight/spotlight.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,27 +41,41 @@ class="fixed flex items-center justify-center w-full h-auto px-4 pt-16 text-gray
<div class="w-full max-w-lg">
<div class="overflow-hidden divide-y divide-gray-300 bg-gray-200 rounded-xl shadow-xl bg-opacity-20">
<div class="flex items-center p-5">
<div class="px-2 text-sm text-gray-200">Tapez </div>
<div class="px-3 py-1.5 text-xs font-medium text-gray-100 uppercase bg-gray-900 rounded-lg">Article</div>
<div class="px-2 text-sm text-gray-200">pour rechercher dans les articles</div>
<div class="px-2 text-sm text-gray-200">{{ __('livewire-ui-spotlight::spotlight.type') }} </div>
<div class="px-3 py-1.5 text-xs font-medium text-gray-100 uppercase bg-gray-900 rounded-lg">
{{ __('livewire-ui-spotlight::spotlight.section.article') }}
</div>
<div class="px-2 text-sm text-gray-200">
{{ __('livewire-ui-spotlight::spotlight.section.article_help') }}
</div>
</div>
<div class="flex items-center p-5">
<div class="px-2 text-sm text-gray-200">Tapez </div>
<div class="px-3 py-1.5 text-xs font-medium text-gray-100 uppercase bg-gray-900 rounded-lg">Discussion</div>
<div class="px-2 text-sm text-gray-200">pour rechercher dans les discussions</div>
<div class="px-2 text-sm text-gray-200">{{ __('livewire-ui-spotlight::spotlight.type') }} </div>
<div class="px-3 py-1.5 text-xs font-medium text-gray-100 uppercase bg-gray-900 rounded-lg">
{{ __('livewire-ui-spotlight::spotlight.section.discussion') }}
</div>
<div class="px-2 text-sm text-gray-200">
{{ __('livewire-ui-spotlight::spotlight.section.discussion_help') }}
</div>
</div>
<div class="flex items-center p-5">
<div class="px-2 text-sm text-gray-200">Tapez </div>
<div class="px-3 py-1.5 text-xs font-medium text-gray-100 uppercase bg-gray-900 rounded-lg">Sujet</div>
<div class="px-2 text-sm text-gray-200">pour rechercher un sujet dans le forum</div>
<div class="px-2 text-sm text-gray-200">{{ __('livewire-ui-spotlight::spotlight.type') }} </div>
<div class="px-3 py-1.5 text-xs font-medium text-gray-100 uppercase bg-gray-900 rounded-lg">
{{ __('livewire-ui-spotlight::spotlight.section.thread') }}
</div>
<div class="px-2 text-sm text-gray-200">
{{ __('livewire-ui-spotlight::spotlight.section.thread_help') }}
</div>
</div>
</div>
<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>
<div class="px-2 mt-5 text-xs text-center text-gray-200 opacity-50">
{{ __('livewire-ui-spotlight::spotlight.global_help') }}
</div>
</div>
</template>
<template x-if="inputPlaceholder != '{{ trans('livewire-ui-spotlight::spotlight.placeholder') }}'">
<div class="w-full max-w-lg p-5 bg-gray-100 rounded-lg shadow-xl bg-opacity-10">
<span>Suivant, </span>
<span>{{ __('pagination.next') }}, </span>
<span x-text="inputPlaceholder" class="lowercase"></span>
</div>
</template>
Expand Down
Loading