Actions & PR Template verbessern #223
@@ -82,3 +82,19 @@ jobs:
|
||||
- name: Check for untranslated messages
|
||||
run: |
|
||||
flutter pub run intl_utils:generate --output-dir=lib/l10n --no-use-deferred-loading
|
||||
|
||||
UNTRANSLATED_FILE=lib/l10n/untranslated_messages.json
|
||||
if [ ! -f "$UNTRANSLATED_FILE" ]; then
|
||||
echo "Expected $UNTRANSLATED_FILE to be generated, but it does not exist."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
CONTENT=$(tr -d '[:space:]' < "$UNTRANSLATED_FILE")
|
||||
if [ "$CONTENT" != "{}" ]; then
|
||||
echo "Found untranslated messages:"
|
||||
cat "$UNTRANSLATED_FILE"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "All messages translated."
|
||||
|
||||
|
||||
Reference in New Issue
Block a user