This commit is contained in:
Aron Petau 2025-08-27 16:56:14 +02:00
commit d013ece0f3
363 changed files with 20823 additions and 0 deletions

22
scripts/create_german_stubs.sh Executable file
View file

@ -0,0 +1,22 @@
#!/bin/bash
set -e
CONTENT_DIR="../content"
find "$CONTENT_DIR" -type f \( -name 'index.md' -o -name '_index.md' \) | while read -r file; do
base="${file%.md}" # Remove .md
new_file="${base}.de.md" # Append .de.md
if [ ! -f "$new_file" ]; then
echo "Creating $new_file"
cp "$file" "$new_file"
# macOS-compatible sed (empty backup extension)
sed -i '' 's/^title = "\(.*\)"/title = "Übersetzung: \1"/' "$new_file"
else
echo "Skipping $new_file (already exists)"
fi
done
echo "German stub creation complete."