Compare commits
2 Commits
c60a4178de
...
6065d24348
Author | SHA1 | Date | |
---|---|---|---|
6065d24348 | |||
ca48a10ee9 |
1
.gitignore
vendored
1
.gitignore
vendored
@ -6,3 +6,4 @@
|
|||||||
*.doc
|
*.doc
|
||||||
*.docx
|
*.docx
|
||||||
public
|
public
|
||||||
|
.hugo_build.lock
|
||||||
|
@ -8,6 +8,6 @@ cat en.toml | while read -r line; do
|
|||||||
echo "$line" | grep '=' -q && \
|
echo "$line" | grep '=' -q && \
|
||||||
old="$(echo "$line" | cut -d= -f2)" && \
|
old="$(echo "$line" | cut -d= -f2)" && \
|
||||||
new="$(echo "$old" | trans en:$1 -b -e google)" && \
|
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
|
echo "$line" >> $1.toml
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user