Compare commits

...

2 Commits

Author SHA1 Message Date
6065d24348
add hugo lock to gitignore 2023-09-06 22:57:20 +02:00
ca48a10ee9
put space back into autolang.sh after = 2023-09-06 22:56:29 +02:00
2 changed files with 2 additions and 1 deletions

1
.gitignore vendored
View File

@ -6,3 +6,4 @@
*.doc
*.docx
public
.hugo_build.lock

View File

@ -8,6 +8,6 @@ cat en.toml | while read -r line; do
echo "$line" | grep '=' -q && \
old="$(echo "$line" | cut -d= -f2)" && \
new="$(echo "$old" | trans en:$1 -b -e google)" && \
echo "$line" | sed "s/$old/$new/" >> $1.toml || \
echo "$line" | sed "s/$old/ $new/" >> $1.toml || \
echo "$line" >> $1.toml
done