dartlangeditorflutterflutter-appsflutter-examplesflutter-packageflutter-widgetquillquill-deltaquilljsreactquillrich-textrich-text-editorwysiwygwysiwyg-editor
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
682 B
29 lines
682 B
#!/bin/bash |
|
|
|
# Important: make sure to run the script in the root folder of the repo: |
|
# ./scripts/regenerate_translations.sh |
|
# otherwise the script could delete the wrong folder in rare cases |
|
|
|
# TODO: Refactor this to a dart script to allow developers who use Windows to use it |
|
|
|
echo "" |
|
|
|
echo "Delete the current generated localizations..." |
|
rm -rf lib/src/l10n/generated |
|
echo "" |
|
|
|
echo "Run flutter pub get.." |
|
flutter pub get |
|
echo "" |
|
|
|
echo "Run flutter gen-l10n" |
|
flutter gen-l10n |
|
echo "" |
|
|
|
echo "" |
|
echo "Apply dart fixes to the newly generated files" |
|
dart fix --apply ./lib/src/l10n/generated |
|
|
|
echo "" |
|
echo "Formate the newly generated dart files" |
|
dart format ./lib/src/l10n/generated |