Last active
March 5, 2018 13:09
-
-
Save RanolP/6315b596323adb5b395d8df07fd6b1ef to your computer and use it in GitHub Desktop.
Crowdin crawler
This file contains 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
function crawl() { | |
let payload = { | |
file_id: crowdin.editor.file.id, | |
project_id: crowdin.editor.project.id, | |
filter: 0, | |
page: 0, // crawl all data | |
custom_filter: "{}", | |
target_language_id: 27, // korean | |
query: "", | |
search_option: 0 | |
}; | |
return new Promise(resolve => crowdin.ajax.postData("/phrases", payload, v => resolve(v.phrases.map(it => it.text)))); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Crowdin 파일 페이지에 들어가서 콘솔 열고 붙여넣은 다음에
하면 됩니다.