-
Notifications
You must be signed in to change notification settings - Fork 446
/
UpdateTranslations.ps1
62 lines (56 loc) · 1.71 KB
/
UpdateTranslations.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
Push-Location (Split-Path -Path $MyInvocation.MyCommand.Definition -Parent)
$api_token = "4e9bc169a3ef996122f4202665cef35d";
$projectId = "258717";
function DownloadLanguageFile($language, $directory)
{
if (!$directory)
{
$directory = $language
}
$contentType = 'application/x-www-form-urlencoded'
$body = @{
api_token = $api_token
id = $projectId
language = $language
type = "resw"
}
$response = Invoke-RestMethod -Uri "https://api.poeditor.com/v2/projects/export" -Method Post -Body $body -ContentType $contentType
Invoke-WebRequest -Uri $response.result.url -OutFile "FluentTerminal.App/Strings/$($directory)/Resources.resw"
}
DownloadLanguageFile "en" "en-US"
DownloadLanguageFile "zh-TW" "zh-Hant"
DownloadLanguageFile "zh-Hans"
DownloadLanguageFile "de"
DownloadLanguageFile "es"
DownloadLanguageFile "fr"
DownloadLanguageFile "he"
DownloadLanguageFile "hi"
DownloadLanguageFile "bs"
DownloadLanguageFile "hr"
DownloadLanguageFile "pt-BR"
DownloadLanguageFile "ru"
DownloadLanguageFile "ro"
DownloadLanguageFile "it"
DownloadLanguageFile "nl"
DownloadLanguageFile "pl"
DownloadLanguageFile "ja"
DownloadLanguageFile "ar-iq"
DownloadLanguageFile "uk"
DownloadLanguageFile "ko"
DownloadLanguageFile "az" "az-Latn"
DownloadLanguageFile "ar"
DownloadLanguageFile "id"
DownloadLanguageFile "fa"
DownloadLanguageFile "tr"
DownloadLanguageFile "hu"
DownloadLanguageFile "sl"
DownloadLanguageFile "ug" "ug-Arab"
DownloadLanguageFile "eo"
DownloadLanguageFile "uz" "uz-Latn"
DownloadLanguageFile "sv"
DownloadLanguageFile "sq"
DownloadLanguageFile "pt"
DownloadLanguageFile "sr" "sr-Latn"
DownloadLanguageFile "sr-cyrl"
DownloadLanguageFile "vi"
DownloadLanguageFile "bg"