Last active
June 15, 2017 19:55
-
-
Save Christilut/984cb5d35a8d2cdcdd7c22eef2968b92 to your computer and use it in GitHub Desktop.
get ISO-639-1 Code from https://cloud.google.com/translate/docs/languages
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
JSON.stringify($.map($('.devsite-table-wrapper').first().find('tbody tr'), (x) => { | |
return { | |
label: $(x).find('td').first().text(), | |
code: $(x).find('td:eq(1)').text() | |
} | |
}), null, ' ') | |
// dont forget to remove some comments |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment