-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add workflows to sync locales * Add php-cs-fixer
- Loading branch information
Showing
16 changed files
with
2,422 additions
and
775 deletions.
There are no files selected for viewing
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,14 @@ | ||
name: "Synchronize locales" | ||
|
||
on: | ||
schedule: | ||
- cron: "0 0 * * 1-5" | ||
workflow_dispatch: | ||
|
||
jobs: | ||
sync-with-transifex: | ||
name: "Sync with transifex" | ||
uses: "glpi-project/plugin-translation-workflows/.github/workflows/transifex-sync.yml@v1" | ||
secrets: | ||
github-token: "${{ secrets.LOCALES_SYNC_TOKEN }}" | ||
transifex-token: "${{ secrets.TRANSIFEX_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,13 @@ | ||
name: "Update locales sources" | ||
|
||
on: | ||
push: | ||
branches: | ||
- "main" | ||
|
||
jobs: | ||
push-on-transifex: | ||
name: "Push locales sources" | ||
uses: "glpi-project/plugin-translation-workflows/.github/workflows/transifex-push-sources.yml@v1" | ||
secrets: | ||
transifex-token: "${{ secrets.TRANSIFEX_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,20 @@ | ||
<?php | ||
|
||
use PhpCsFixer\Config; | ||
use PhpCsFixer\Finder; | ||
|
||
$finder = Finder::create() | ||
->in(__DIR__) | ||
->name('*.php'); | ||
|
||
$config = new Config(); | ||
|
||
$rules = [ | ||
'@PER-CS2.0' => true, | ||
'trailing_comma_in_multiline' => ['elements' => ['arguments', 'array_destructuring', 'arrays']], // For PHP 7.4 compatibility | ||
]; | ||
|
||
return $config | ||
->setRules($rules) | ||
->setFinder($finder) | ||
->setUsingCache(false); |
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
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
Oops, something went wrong.