From 52aa7c0a9dab846255f0283d88b518f6f9da0172 Mon Sep 17 00:00:00 2001 From: Ellet <hello@freshplatform.net> Date: Sun, 12 Nov 2023 20:11:50 +0300 Subject: [PATCH] Fix typo in regenrate translation and update the script --- .github/workflows/publish.yml | 2 +- doc/translation.md | 2 +- ...egerate-translations.sh => regenerate-translations.sh} | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) rename scripts/{renegerate-translations.sh => regenerate-translations.sh} (69%) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 098bfab7..83f33980 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -32,7 +32,7 @@ jobs: # - run: dart tool/generate-code.dart - name: Re-generate the translations - run: ./scripts/renegerate-translations.sh + run: ./scripts/regenerate-translations.sh - name: Publish run: flutter pub publish --force diff --git a/doc/translation.md b/doc/translation.md index 990fffe3..5bacbd07 100644 --- a/doc/translation.md +++ b/doc/translation.md @@ -55,7 +55,7 @@ flutter gen-l10n or: ``` -./scripts/renegerate-translations.sh +./scripts/regenerate-translations.sh ``` diff --git a/scripts/renegerate-translations.sh b/scripts/regenerate-translations.sh similarity index 69% rename from scripts/renegerate-translations.sh rename to scripts/regenerate-translations.sh index 999a8dbf..1f7c26e5 100755 --- a/scripts/renegerate-translations.sh +++ b/scripts/regenerate-translations.sh @@ -1,8 +1,8 @@ #!/bin/bash # Important: make sure to run the script in the root folder of the repo: -# ./scripts/renegerate-translations.sh -# otherwise the script could delete the wrong folder +# ./scripts/regenerate-translations.sh +# otherwise the script could delete the wrong folder in rare cases echo "" @@ -20,8 +20,8 @@ echo "" echo "" echo "Apply dart fixes to the newly generated files" -dart fix --apply +dart fix --apply ./lib/src/l10n/generated echo "" echo "Formate the newly generated dart files" -dart format . \ No newline at end of file +dart format ./lib/src/l10n/generated \ No newline at end of file