Last active
September 6, 2018 09:33
-
-
Save bezysoftware/f7d87f9ff7c3675a44cc7c8d433d36a0 to your computer and use it in GitHub Desktop.
Download strings from getlocalition.com
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $languages = "fi", "de", "cs" #... other languages | |
| $folder = "temp" | |
| $headers = @{ Authorization = "Basic base64-encoded-credentials" } # set the authorize header | |
| $languages | foreach { | |
| $lng = $_ | |
| try { | |
| Invoke-WebRequest -uri "https://api.getlocalization.com/settle_up/api/translations/file/strings.xml/$lng/" -Headers $headers -OutFile "$folder/strings.$lng.xml" | |
| } | |
| catch { | |
| Write-Error "Couldn't fetch language file '$lng'" | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment