Update index.js to allow for language additions from outside of the API#18
Conversation
|
Good feature! Could you add to readme a usage example? |
Sure. I can reference what the original upstream PR had for instructions and mirror those in the readme if you like. Gta = require('google-translate-api');
Gta.languages['sr-Latn'] = 'Serbian Latin';
Gta.languages['sr-Cyrl'] = 'Serbian Cyrillic';EDIT: Done. |
Codecov Report
@@ Coverage Diff @@
## master #18 +/- ##
=======================================
Coverage 92.42% 92.42%
=======================================
Files 2 2
Lines 66 66
=======================================
Hits 61 61
Misses 5 5
Continue to review full report at Codecov.
|
|
This is cool! 👍
|
Updates index.js to allow for language additions from outside of the API
Update the readme as per vitalets' suggestion
|
The repo's been rebased around the current master. The test for this will be worked on shortly. |
|
I've coded a WIP test for this particular feature. Testing would be very much appreciated. |
|
Thank you! 👍 |
Updates index.js to allow for language additions from outside of the API (carryover from unmaintained upstream PR matheuss#31).