add german stubs, mastodon test

This commit is contained in:
Aron Petau 2025-05-16 11:08:33 +02:00
parent 81dfcfac23
commit c9612d8a1d
1464 changed files with 65354 additions and 346 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."