generated from Laravel-Lang/translations-template
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit e95e284
Showing
57 changed files
with
1,993 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
VITE_APP_ALGOLIA_APP_ID= | ||
VITE_APP_ALGOLIA_API_KEY= | ||
VITE_APP_ALGOLIA_INDEX_NAME= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
* text=auto | ||
|
||
.github/ export-ignore | ||
tests/ export-ignore | ||
|
||
app/ export-ignore | ||
docs/ export-ignore | ||
excludes/ export-ignore | ||
|
||
.editorconfig export-ignore | ||
.env.example export-ignore | ||
.gitattributes export-ignore | ||
.gitignore export-ignore | ||
|
||
package.json export-ignore | ||
|
||
phpunit.xml export-ignore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
open_collective: "laravel-lang" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
name: Bug | ||
description: Report a bug or other issue | ||
|
||
labels: '👓 needs review' | ||
|
||
body: | ||
- type: markdown | ||
attributes: | ||
value: | | ||
Thanks for taking the time to fill out this bug report! | ||
⚠️Review existing issues to see whether someone else has already reported your issue. | ||
📖 Please also read [CONTRIBUTING.md](https://laravel-lang.com/contributing.html). | ||
- type: textarea | ||
id: environment | ||
attributes: | ||
label: Environment | ||
description: | | ||
Tip: Use the `composer info your/namespace` command to get information for Laravel Lang. | ||
Tip: Use the `composer info laravel/framework` command to get information for Laravel Framework. | ||
Tip: Use the `php -v` command to get information for PHP. | ||
value: | | ||
- Extended Lang Translations Template Version: | ||
- Laravel Version: | ||
- PHP Version: | ||
validations: | ||
required: true | ||
|
||
- type: textarea | ||
id: description | ||
attributes: | ||
label: Issue description | ||
description: | | ||
Be as specific and detailed as possible to help us triaging your issue. Screenshots and/or animations can be very useful in helping to understand the issue you're facing. | ||
Tip: You can attach images or log files by clicking this area to highlight it and then dragging files in. | ||
Tip: You can use https://www.screentogif.com to record animations and videos. | ||
validations: | ||
required: true | ||
|
||
- type: textarea | ||
id: steps | ||
attributes: | ||
label: Steps to reproduce | ||
description: Take some time to try and reproduce the issue, then explain how to do so here. | ||
validations: | ||
required: true | ||
|
||
- type: markdown | ||
attributes: | ||
value: | | ||
❤️ Laravel Lang? Please consider supporting our collective: https://opencollective.com/laravel-lang |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
blank_issues_enabled: false | ||
contact_links: | ||
- name: Questions & Other | ||
url: https://github.com/<your_namespace>/discussions | ||
about: 'If you want to ask about something else, use the discussions.' | ||
- name: Laravel issue | ||
url: https://github.com/laravel/framework/issues | ||
about: 'If you have a question about your Laravel implementation, ask it in your Laravel project.' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: Feature Proposal | ||
description: Propose a new feature | ||
|
||
labels: | ||
- '💪 feature request' | ||
|
||
body: | ||
- type: markdown | ||
attributes: | ||
value: | | ||
Thanks for taking the time to fill out this bug report! | ||
⚠️Review existing issues to see whether someone else has already reported your issue. | ||
📖 Please also read [CONTRIBUTING.md](https://laravel-lang.com/contributing.html). | ||
- type: textarea | ||
id: description | ||
attributes: | ||
label: Feature description | ||
description: | | ||
Think through your proposal and describe it clearly. | ||
Note that features are only added to the most recent version of Laravel Lang. | ||
validations: | ||
required: true | ||
|
||
- type: textarea | ||
id: environment | ||
attributes: | ||
label: Environment | ||
description: | | ||
Tip: Use the `composer info your/namespace` command to get information for Laravel Lang. | ||
Tip: Use the `composer info laravel/framework` command to get information for Laravel Framework. | ||
Tip: Use the `php -v` command to get information for PHP. | ||
value: | | ||
- Extended Lang Translations Template Version: | ||
- Laravel Version: | ||
- PHP Version: | ||
validations: | ||
required: true | ||
|
||
- type: markdown | ||
attributes: | ||
value: | | ||
❤️ Laravel Lang? Please consider supporting our collective: https://opencollective.com/laravel-lang |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
version: 2 | ||
updates: | ||
- | ||
package-ecosystem: github-actions | ||
directory: / | ||
schedule: | ||
interval: daily | ||
timezone: UTC | ||
time: '00:00' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: Code Style | ||
|
||
on: [ push, pull_request ] | ||
|
||
permissions: write-all | ||
|
||
jobs: | ||
style: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Check the code style | ||
uses: TheDragonCode/codestyler@v3 | ||
if: ${{ github.event_name != 'push' || github.ref != 'refs/heads/main' }} | ||
with: | ||
github_token: ${{ secrets.COMPOSER_TOKEN }} | ||
|
||
- name: Fix the code style | ||
uses: TheDragonCode/codestyler@v3 | ||
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} | ||
with: | ||
github_token: ${{ secrets.COMPOSER_TOKEN }} | ||
fix: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: phpunit | ||
|
||
on: [ push ] | ||
|
||
permissions: read-all | ||
|
||
jobs: | ||
laravel: | ||
runs-on: ubuntu-latest | ||
|
||
name: PHP Unit | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
extensions: curl, mbstring, zip, pcntl, pdo, pdo_sqlite, iconv | ||
coverage: none | ||
env: | ||
COMPOSER_TOKEN: ${{ secrets.COMPOSER_TOKEN }} | ||
|
||
- name: Install dependencies | ||
run: composer update --prefer-stable --prefer-dist --no-progress --no-interaction | ||
|
||
- name: Execute tests | ||
run: sudo vendor/bin/phpunit --colors=always |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
name: translate | ||
|
||
on: | ||
schedule: | ||
- cron: 27 1 * * * | ||
workflow_dispatch: | ||
|
||
permissions: write-all | ||
|
||
jobs: | ||
translate: | ||
uses: Laravel-Lang/.github/.github/workflows/translate.yml@main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
name: update | ||
|
||
on: | ||
schedule: | ||
- cron: 0 0 * * * | ||
push: | ||
branches: | ||
- main | ||
release: | ||
types: | ||
- released | ||
|
||
permissions: write-all | ||
|
||
jobs: | ||
update: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
extensions: curl, mbstring, zip, pcntl, pdo, pdo_sqlite, iconv, json | ||
coverage: none | ||
|
||
- name: Git setup | ||
if: success() | ||
run: | | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "GitHub Action" | ||
- name: Install dependencies | ||
run: composer update --prefer-stable --prefer-dist --no-progress --no-interaction | ||
|
||
- name: Adding missing locales | ||
id: locales | ||
if: success() | ||
run: | | ||
IS_DIRTY=1 | ||
vendor/bin/lang create | ||
{ git add . && git commit -a -m "✏️ Adding missing locales"; } || IS_DIRTY=0 | ||
echo "is_dirty=${IS_DIRTY}" >> "$GITHUB_OUTPUT" | ||
- name: Keys actualization | ||
id: keys | ||
if: success() | ||
run: | | ||
IS_DIRTY=1 | ||
vendor/bin/lang sync | ||
{ git add . && git commit -a -m "🔑 Synchronization of translation keys"; } || IS_DIRTY=0 | ||
echo "is_dirty=${IS_DIRTY}" >> "$GITHUB_OUTPUT" | ||
- name: Update status of translations | ||
id: status | ||
if: success() | ||
run: | | ||
IS_DIRTY=1 | ||
vendor/bin/lang status | ||
{ git add . && git commit -a -m "📃 Translation statuses have been updated"; } || IS_DIRTY=0 | ||
echo "is_dirty=${IS_DIRTY}" >> "$GITHUB_OUTPUT" | ||
- name: Push changes | ||
uses: ad-m/github-push-action@master | ||
if: | | ||
success() && ( | ||
steps.locales.outputs.is_dirty == 1 || | ||
steps.keys.outputs.is_dirty == 1 || | ||
steps.status.outputs.is_dirty == 1 | ||
) | ||
with: | ||
github_token: ${{ secrets.COMPOSER_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
.idea/ | ||
_site/ | ||
build/ | ||
node_modules/ | ||
vendor/ | ||
tmp/ | ||
|
||
.cache | ||
.DS_Store | ||
.env | ||
.php_cs.cache | ||
.phpintel | ||
.temp | ||
|
||
*.bak | ||
*.cache | ||
*.clover | ||
*.orig | ||
|
||
composer.lock | ||
package-lock.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<component name="ProjectRunConfigurationManager"> | ||
<configuration default="false" name="build" type="js.build_tools.npm" nameIsGenerated="true"> | ||
<package-json value="$PROJECT_DIR$/package.json" /> | ||
<command value="run" /> | ||
<scripts> | ||
<script value="build" /> | ||
</scripts> | ||
<node-interpreter value="project" /> | ||
<package-manager value="npm" /> | ||
<envs /> | ||
<method v="2" /> | ||
</configuration> | ||
</component> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<component name="ProjectRunConfigurationManager"> | ||
<configuration default="false" name="dev" type="js.build_tools.npm" nameIsGenerated="true"> | ||
<package-json value="$PROJECT_DIR$/package.json" /> | ||
<command value="run" /> | ||
<scripts> | ||
<script value="dev" /> | ||
</scripts> | ||
<node-interpreter value="project" /> | ||
<package-manager value="npm" /> | ||
<envs /> | ||
<method v="2" /> | ||
</configuration> | ||
</component> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2023 <username> | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
Oops, something went wrong.