feat: update all localizations

complete italian, turkish, korean using automated translation
fix punctuation issues and make punctuation language-specific instead of hardcoded to English style
This commit is contained in:
Louis Pontoise authored and lwouis committed 2020-04-23 03:04:26 +09:00
1 parent b90ad066ce
commit a2dd46db55
20 files changed
+362 -308

No files matched your search

+3 -3
View File
@@ -7,18 +7,18 @@ readOnlyToken="8170d6b4f0531ffd7f52edea374a3689"
projectId="316051"
function updateLanguageFile() {
exportApiJson="$(curl -X POST https://api.poeditor.com/v2/projects/export \
exportApiJson="$(curl -s -X POST https://api.poeditor.com/v2/projects/export \
-d api_token="$readOnlyToken" \
-d id="$projectId" \
-d language="$1" \
-d order="terms" \
-d type="apple_strings")"
fileUrl="$(jq -r '.result.url' <<<"$exportApiJson")"
curl "$fileUrl" > "$fileDirectory/$1.lproj/Localizable.strings"
curl -s "$fileUrl" > "$fileDirectory/$1.lproj/Localizable.strings"
}
function getLanguagesOnPoeditor() {
languagesOnPoeditor="$(curl -X POST https://api.poeditor.com/v2/languages/list \
languagesOnPoeditor="$(curl -s -X POST https://api.poeditor.com/v2/languages/list \
-d api_token="$readOnlyToken" \
-d id="$projectId")"
jq -r .result.languages[].code <<<"$languagesOnPoeditor"