|
@@ -11,27 +11,6 @@ node scripts/translations/cleanupUnusedLocales.js --check
|
|
|
# Ensure all locales use the same variables
|
|
# Ensure all locales use the same variables
|
|
|
node scripts/translations/checkVariables.js --ignore-orphaned-translations
|
|
node scripts/translations/checkVariables.js --ignore-orphaned-translations
|
|
|
|
|
|
|
|
-# Ensure all locales used in the frontend are tracked
|
|
|
|
|
-OUTPUT=data/dumpFolder/i18next-scanner
|
|
|
|
|
-trap "rm -rf $OUTPUT" EXIT
|
|
|
|
|
-npx i18next-scanner --output "$OUTPUT"
|
|
|
|
|
-ACTUAL=frontend/extracted-translations.json
|
|
|
|
|
-EXPECTED="$OUTPUT/frontend/extracted-translations.json"
|
|
|
|
|
-if ! diff "$ACTUAL" "$EXPECTED"; then
|
|
|
|
|
- cat <<MSG >&2
|
|
|
|
|
-
|
|
|
|
|
-services/web/frontend/extracted-translations.json is not up-to-date.
|
|
|
|
|
-
|
|
|
|
|
----
|
|
|
|
|
-Try running:
|
|
|
|
|
-
|
|
|
|
|
- internal$ bin/run web npm run extract-translations
|
|
|
|
|
-
|
|
|
|
|
----
|
|
|
|
|
-MSG
|
|
|
|
|
- exit 1
|
|
|
|
|
-fi
|
|
|
|
|
-
|
|
|
|
|
# Ensure no locales contain single quotes.
|
|
# Ensure no locales contain single quotes.
|
|
|
LOCALES_WITH_SINGLE_QUOTE=$(\
|
|
LOCALES_WITH_SINGLE_QUOTE=$(\
|
|
|
grep \
|
|
grep \
|