Skip to content

Commit

Permalink
chore: switch to @vitalets/google-translate-api
Browse files Browse the repository at this point in the history
  • Loading branch information
rsify committed May 21, 2019
1 parent eaaf68b commit f1d67bb
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions lib/cmd/translate.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const alfy = require('alfy')
const translate = require('google-translate-api')
const languages = require('google-translate-api/languages')
const translate = require('@vitalets/google-translate-api')
const languages = require('@vitalets/google-translate-api/languages')

const outputLanguages = require('../output/languages')
const {CachedList} = require('../util')
Expand Down
2 changes: 1 addition & 1 deletion lib/output/languages.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const alfy = require('alfy')
const languages = require('google-translate-api/languages')
const languages = require('@vitalets/google-translate-api/languages')

const {langNames} = require('../util')

Expand Down
2 changes: 1 addition & 1 deletion lib/util.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const alfy = require('alfy')
const languages = require('google-translate-api/languages')
const languages = require('@vitalets/google-translate-api/languages')

module.exports.capitalize = x =>
x.slice(0, 1).toUpperCase() + x.slice(1).toLowerCase()
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
"alfy"
],
"dependencies": {
"alfy": "^0.6.0",
"google-translate-api": "github:nikersify/google-translate-api"
"@vitalets/google-translate-api": "^2.8.0",
"alfy": "^0.6.0"
},
"devDependencies": {
"xo": "^0.20.3"
Expand Down

0 comments on commit f1d67bb

Please sign in to comment.