Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
flow0284 authored Oct 24, 2020
1 parent f05fb22 commit 0fce585
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/get-translations.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash
function get-translations(){
curl -H "X-Api-Token: bd16e94f-a16e-4446-a8ee-88ce6a862a4f" -X GET -H \
"Content-type: application/json" \
>temp.lua \
"https://wow.curseforge.com/api/projects/82538/localization/export?lang=$1"

sed -e '/--.*$/{r temp.lua' -e 'd}' ProspectButton/locales/$1.lua >temp2.lua
awk '{gsub("\\\\\\\\n", "\\n", $0); print}' temp2.lua >temp.lua
mv temp.lua ProspectButton/locales/$1.lua
rm temp2.lua
}
get-translations $1

0 comments on commit 0fce585

Please sign in to comment.