-
-
Notifications
You must be signed in to change notification settings - Fork 775
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
Showing
107 changed files
with
809 additions
and
813 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 |
---|---|---|
|
@@ -25,7 +25,7 @@ jobs: | |
uses: subosito/flutter-action@v2 | ||
with: | ||
cache: true | ||
flutter-version: 3.24.x | ||
flutter-version: 3.27.x | ||
|
||
- name: Sync translations from Crowdin | ||
uses: crowdin/github-action@v1 | ||
|
@@ -47,26 +47,22 @@ jobs: | |
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }} | ||
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }} | ||
|
||
# There has to be a better way to do this | ||
- name: Normalization of Translation Strings | ||
- name: Validation of synced translations | ||
run: | | ||
dart pub get | ||
cd assets/i18n | ||
sudo chmod 766 *.json | ||
cd ../.. | ||
dart run slang analyze | ||
dart run slang clean | ||
dart run slang validate | ||
- name: Normalization of Translation Strings | ||
run: | | ||
dart run slang normalize | ||
cd assets/i18n | ||
dart nuke.dart >> $GITHUB_STEP_SUMMARY | ||
cd ../.. | ||
dart run slang | ||
flutter analyze lib/gen/strings.g.dart --no-fatal-infos --no-fatal-warnings | ||
# There will be no way flutter analyze will fail... right? | ||
|
||
- name: Commit translations | ||
run: | | ||
git config user.name revanced-bot | ||
git config user.email [email protected] | ||
sudo chown -R $USER:$USER .git | ||
git commit -m "chore: Remove empty values from JSON" assets/i18n/strings_*.json | ||
git commit -m "chore: Remove empty values from JSON" assets/i18n/*.i18n.json | ||
git push origin HEAD:feat/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 |
---|---|---|
@@ -1,14 +1,14 @@ | ||
# Nuke:tm: | ||
|
||
> ![CAUTION] | ||
> Some of the code are licensed under BSD 3-Clause License, please check inside the code file for more information. | ||
## Usage | ||
|
||
Move to your desire directory and run | ||
|
||
```bash | ||
dart nuke.dart | ||
``` | ||
|
||
and it will remove all the empty keys from the JSON files in the current folder. | ||
# Nuke:tm: | ||
|
||
> ![CAUTION] | ||
> Some of the code are licensed under BSD 3-Clause License, please check inside the code file for more information. | ||
## Usage | ||
|
||
Move to your desire directory and run | ||
|
||
```bash | ||
dart nuke.dart | ||
``` | ||
|
||
and it will remove all the empty keys from the JSON files in the current folder. |
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 |
---|---|---|
|
@@ -16,4 +16,4 @@ | |
"appInfoView": {}, | ||
"contributorsView": {}, | ||
"installErrorDialog": {} | ||
} | ||
} |
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 |
---|---|---|
|
@@ -16,4 +16,4 @@ | |
"appInfoView": {}, | ||
"contributorsView": {}, | ||
"installErrorDialog": {} | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,4 +16,4 @@ | |
"appInfoView": {}, | ||
"contributorsView": {}, | ||
"installErrorDialog": {} | ||
} | ||
} |
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
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 |
---|---|---|
|
@@ -16,4 +16,4 @@ | |
"appInfoView": {}, | ||
"contributorsView": {}, | ||
"installErrorDialog": {} | ||
} | ||
} |
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 |
---|---|---|
|
@@ -168,4 +168,4 @@ | |
"widgetTitle": "Col·laboradors" | ||
}, | ||
"installErrorDialog": {} | ||
} | ||
} |
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
Oops, something went wrong.