Skip to content
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

Google translate in angular 5 not working #56

Open
akshayseth opened this issue Feb 21, 2018 · 2 comments
Open

Google translate in angular 5 not working #56

akshayseth opened this issue Feb 21, 2018 · 2 comments

Comments

@akshayseth
Copy link

I want to add multi language support in my website.However most of the data is coming from API so I cant make a JSON of it. I am using Google Translate but it is not working. Can you please share steps as how to inject it in my angular 5 application? Much thanks in advance :)

@thavus
Copy link

thavus commented Nov 24, 2018

I tried doing this on my own and I'm getting some errors...

ERROR in ./node_modules/got/index.js
Module not found: Error: Can't resolve './package' in 'C:\Users\round\Documents\machineTranslateSecondTry\node_modules\got'
ERROR in ./node_modules/osenv/osenv.js
Module not found: Error: Can't resolve 'child_process' in 'C:\Users\round\Documents\machineTranslateSecondTry\node_modules\osenv'
ERROR in ./node_modules/graceful-fs/polyfills.js
Module not found: Error: Can't resolve 'constants' in 'C:\Users\round\Documents\machineTranslateSecondTry\node_modules\graceful-fs'
ERROR in ./node_modules/graceful-fs/graceful-fs.js
Module not found: Error: Can't resolve 'fs' in 'C:\Users\round\Documents\machineTranslateSecondTry\node_modules\graceful-fs'
ERROR in ./node_modules/mkdirp/index.js
Module not found: Error: Can't resolve 'fs' in 'C:\Users\round\Documents\machineTranslateSecondTry\node_modules\mkdirp'
ERROR in ./node_modules/got/index.js
Module not found: Error: Can't resolve 'http' in 'C:\Users\round\Documents\machineTranslateSecondTry\node_modules\got'
ERROR in ./node_modules/got/index.js
Module not found: Error: Can't resolve 'https' in 'C:\Users\round\Documents\machineTranslateSecondTry\node_modules\got'
ERROR in ./node_modules/os-homedir/index.js
Module not found: Error: Can't resolve 'os' in 'C:\Users\round\Documents\machineTranslateSecondTry\node_modules\os-homedir'
ERROR in ./node_modules/configstore/index.js
Module not found: Error: Can't resolve 'path' in 'C:\Users\round\Documents\machineTranslateSecondTry\node_modules\configstore'
ERROR in ./node_modules/mkdirp/index.js
Module not found: Error: Can't resolve 'path' in 'C:\Users\round\Documents\machineTranslateSecondTry\node_modules\mkdirp'
ERROR in ./node_modules/osenv/osenv.js
Module not found: Error: Can't resolve 'path' in 'C:\Users\round\Documents\machineTranslateSecondTry\node_modules\osenv'
ERROR in ./node_modules/xdg-basedir/index.js
Module not found: Error: Can't resolve 'path' in 'C:\Users\round\Documents\machineTranslateSecondTry\node_modules\xdg-basedir'
ERROR in ./node_modules/duplexer3/index.js
Module not found: Error: Can't resolve 'stream' in 'C:\Users\round\Documents\machineTranslateSecondTry\node_modules\duplexer3'
ERROR in ./node_modules/get-stream/buffer-stream.js
Module not found: Error: Can't resolve 'stream' in 'C:\Users\round\Documents\machineTranslateSecondTry\node_modules\get-stream'
ERROR in ./node_modules/got/index.js
Module not found: Error: Can't resolve 'stream' in 'C:\Users\round\Documents\machineTranslateSecondTry\node_modules\got'
ERROR in ./node_modules/graceful-fs/legacy-streams.js
Module not found: Error: Can't resolve 'stream' in 'C:\Users\round\Documents\machineTranslateSecondTry\node_modules\graceful-fs'
ERROR in ./node_modules/safe-eval/index.js
Module not found: Error: Can't resolve 'vm' in 'C:\Users\round\Documents\machineTranslateSecondTry\node_modules\safe-eval'
i 「wdm」: Failed to compile.

@lloydaf
Copy link

lloydaf commented Nov 26, 2018

@thavus can you describe the steps you took to use google-translate-api?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants