mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
15 lines
457 B
Bash
Executable File
15 lines
457 B
Bash
Executable File
#! /usr/bin/env bash
|
|
|
|
ROOT_DIR=$(dirname "$0")/../..
|
|
english="$ROOT_DIR/webapp/locales/en.json"
|
|
german="$ROOT_DIR/webapp/locales/de.json"
|
|
listPaths="jq -c 'path(..)|[.[]|tostring]|join(\".\")'"
|
|
if eval "diff -q <( $listPaths < $english ) <( $listPaths < $german )";
|
|
then
|
|
: # all good
|
|
else
|
|
eval "diff -y <( $listPaths < $english ) <( $listPaths < $german )";
|
|
printf "\nEnglish and German translation keys do not match, see diff above.\n"
|
|
exit 1
|
|
fi
|