Fix typo in regenrate translation and update the script

pull/1523/head
Ellet 1 year ago
parent edb072fdf5
commit 52aa7c0a9d
No known key found for this signature in database
GPG Key ID: C488CC70BBCEF0D1
  1. 2
      .github/workflows/publish.yml
  2. 2
      doc/translation.md
  3. 8
      scripts/regenerate-translations.sh

@ -32,7 +32,7 @@ jobs:
# - run: dart tool/generate-code.dart # - run: dart tool/generate-code.dart
- name: Re-generate the translations - name: Re-generate the translations
run: ./scripts/renegerate-translations.sh run: ./scripts/regenerate-translations.sh
- name: Publish - name: Publish
run: flutter pub publish --force run: flutter pub publish --force

@ -55,7 +55,7 @@ flutter gen-l10n
or: or:
``` ```
./scripts/renegerate-translations.sh ./scripts/regenerate-translations.sh
``` ```

@ -1,8 +1,8 @@
#!/bin/bash #!/bin/bash
# Important: make sure to run the script in the root folder of the repo: # Important: make sure to run the script in the root folder of the repo:
# ./scripts/renegerate-translations.sh # ./scripts/regenerate-translations.sh
# otherwise the script could delete the wrong folder # otherwise the script could delete the wrong folder in rare cases
echo "" echo ""
@ -20,8 +20,8 @@ echo ""
echo "" echo ""
echo "Apply dart fixes to the newly generated files" echo "Apply dart fixes to the newly generated files"
dart fix --apply dart fix --apply ./lib/src/l10n/generated
echo "" echo ""
echo "Formate the newly generated dart files" echo "Formate the newly generated dart files"
dart format . dart format ./lib/src/l10n/generated
Loading…
Cancel
Save