Skip to content

Commit b03d690

Browse files
committed
chore: category translations
1 parent 86cdb81 commit b03d690

31 files changed

Lines changed: 50 additions & 11 deletions

File tree

.ci/push-i18n.sh

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
1-
for dir in ./scrolls/*.tar.gz
1+
for dir in scrolls/*/info
22
do
3-
filename=$(basename -- "$dir")
4-
filename="${filename%.tar.gz}"
5-
mc cp --recursive ./scrolls/$filename/info/ scrolls/druid-scrolls-staging/info/$filename/
3+
base=$(dirname $dir)
4+
cat=$(basename $base)
5+
echo $cat $dir
6+
mc cp --recursive ./$dir/* scrolls/druid-scrolls-staging/info/cat/$cat/
7+
done
8+
9+
for dir in scrolls/*/*/info
10+
do
11+
base=$(dirname $dir)
12+
scroll=$(basename $base)
13+
echo $scroll $dir
14+
15+
mc cp --recursive ./$dir/* scrolls/druid-scrolls-staging/info/scroll/$scroll/
616
done

build-all-scrolls.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
for d in scrolls/*/ ; do
1+
for d in scrolls/*/*/ ; do
22
b=$(basename $d)
3-
tar -czvf scrolls/$b.tar.gz -C scrolls/$b .
3+
tar -czvf scrolls/$b.tar.gz -C $d .
44
done

build-changed-scrolls.sh

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,22 @@ fi
55

66
echo "{}" > latest.json
77

8-
for d in scrolls/*/ ; do
8+
for d in scrolls/*/*/ ; do
99
version=$(cat $d/scroll.json | jq -r '.version')
1010
echo $d
11-
scrollName=$(echo "$d" | cut -d'/' -f2)
11+
scrollName=$(echo "$d" | cut -d'/' -f3)
1212
jq '."'"$scrollName"'" = "'"$version"'"' latest.json|sponge latest.json
1313
done
1414

1515
echo "scrolls that changed"
1616
changedScrolls=$(node get-diff.js)
1717
echo $changedScrolls
1818

19-
for s in $changedScrolls ; do
20-
tar -czvf scrolls/$s.tar.gz -C scrolls/$s .
19+
for d in scrolls/*/*/ ; do
20+
b=$(basename $d)
21+
for i in $changedScrolls ; do
22+
if [[ "$i" == "$b" ]]; then
23+
tar -czvf scrolls/$b.tar.gz -C $d .
24+
fi
25+
done
2126
done

scrolls/mc/info/de-DE.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
name: Minecraft
3+
description: Minecraft
4+
---
5+
6+
# Minecraft

scrolls/mc/info/en-US.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
name: Minecraft
3+
description: Minecraft
4+
---
5+
6+
# Minecraft
File renamed without changes.
File renamed without changes.
File renamed without changes.

scrolls/mc-sp@1.17/scroll-switch/mc-sp@1.18/scroll-switch.sh renamed to scrolls/mc/mc-sp@1.17/scroll-switch/mc-sp@1.18/scroll-switch.sh

File renamed without changes.

scrolls/mc-sp@1.17/scroll-switch/mc-sp@1.19/scroll-switch.sh renamed to scrolls/mc/mc-sp@1.17/scroll-switch/mc-sp@1.19/scroll-switch.sh

File renamed without changes.

0 commit comments

Comments
 (0)