generated from LabyMod/addon-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.
Merge pull request #18 from RappyLabyAddons/feat/accentTranslations
Support accent translations
- Loading branch information
Showing
6 changed files
with
52 additions
and
6 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,33 @@ | ||
name: Accent sync | ||
|
||
on: | ||
schedule: | ||
- cron: "0 */12 * * *" | ||
workflow_dispatch: | ||
|
||
env: | ||
ACCENT_API_KEY: ${{ secrets.ACCENT_TOKEN }} | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16 | ||
- run: npm install -g accent-cli | ||
- run: accent sync --add-translations --merge-type=passive --order-by=key | ||
- uses: peter-evans/create-pull-request@v4 | ||
with: | ||
branch: accent | ||
title: New translations are available to merge | ||
body: Translation files have been updated, feel free to merge this pull request after review. | ||
add-paths: "core/src/main/resources/assets/deathfinder/i18n/*.json" | ||
commit-message: Update Accent | ||
committer: GitHub <noreply@github.com> | ||
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com> | ||
draft: false | ||
delete-branch: true | ||
assignees: RappyTV | ||
labels: translations |
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,11 @@ | ||
{ | ||
"apiUrl": "https://translate.rappytv.com", | ||
"files": [ | ||
{ | ||
"namePattern": "parentDirectory", | ||
"format": "json", | ||
"source": "core/src/main/resources/assets/eshare/i18n/%slug%.json", | ||
"target": "core/src/main/resources/assets/eshare/i18n/%slug%.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
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
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