Skip to content

Commit

Permalink
ci: using en-US not en
Browse files Browse the repository at this point in the history
  • Loading branch information
evan361425 committed Jun 11, 2024
1 parent 7bf952c commit 6960040
Show file tree
Hide file tree
Showing 19 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ jobs:
- name: Push to GitHub
run: |
file='android/fastlane/metadata/android/%s/changelogs/${{ needs.check-version.outputs.build_code }}.txt'
echo "${{ needs.get-release.outputs.changelog }}" > $(printf "$file" "en")
echo "${{ needs.get-release.outputs.changelog }}" > $(printf "$file" "en-US")
bash android/fastlane/translate-changelog.sh "$file" '${{ secrets.GOOGLE_AI_API_KEY }}'
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
Expand Down
2 changes: 0 additions & 2 deletions android/fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@ platform :android do
lane :internal do
sh "flutter build appbundle -v --flavor dev --dart-define=appFlavor=dev --dart-define=logLevel=info"

changelog_from_git_commits

upload_to_play_store(
track: 'internal',
rollout: '1',
Expand Down
2 changes: 1 addition & 1 deletion android/fastlane/translate-changelog.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function main() {
zh-TW Traditional Chinese
"

changelog="$(cat "$(printf "$changelogFile" 'en')")"
changelog="$(cat "$(printf "$changelogFile" 'en-US')")"

for lang in $languages; do
local langCode langName prompt changelog
Expand Down

0 comments on commit 6960040

Please sign in to comment.