-
-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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).