Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
andrey-helldar authored Nov 9, 2023
0 parents commit e95e284
Show file tree
Hide file tree
Showing 57 changed files with 1,993 additions and 0 deletions.
799 changes: 799 additions & 0 deletions .editorconfig

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions .env.example
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=
17 changes: 17 additions & 0 deletions .gitattributes
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
1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
open_collective: "laravel-lang"
53 changes: 53 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yml
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
8 changes: 8 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
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.'
45 changes: 45 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.yml
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
9 changes: 9 additions & 0 deletions .github/dependabot.yml
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'
26 changes: 26 additions & 0 deletions .github/workflows/code-style.yml
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
29 changes: 29 additions & 0 deletions .github/workflows/phpunit.yml
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
12 changes: 12 additions & 0 deletions .github/workflows/translate.yml
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
83 changes: 83 additions & 0 deletions .github/workflows/update.yml
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 }}
21 changes: 21 additions & 0 deletions .gitignore
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
13 changes: 13 additions & 0 deletions .run/build.run.xml
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>
13 changes: 13 additions & 0 deletions .run/dev.run.xml
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>
21 changes: 21 additions & 0 deletions LICENSE
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.
Loading

0 comments on commit e95e284

Please sign in to comment.