Skip to content
Sign upLog in
← Back to Community

Google translate app

Profile icon
RolandJLevy

Built with Node, Express, EJS and Bootstrap

Voters
Profile icon
EthanLiu42
Profile icon
programmeruser
Profile icon
userSM
Profile icon
python88
Profile icon
hg0428
Profile icon
userundefined1
Profile icon
kingcharles
Profile icon
mkhoi
Profile icon
DakshVohra
Profile icon
dabs364
Comments
hotnewtop
Profile icon
ch1ck3n

jest

Profile icon
RolandJLevy

Hi

@ch1ck3n
, thanks for your comment. Do you have a suggestion or any further comments?

Profile icon
ch1ck3n

@RolandJLevy
This is a great workaround because I got blocked on google translate for no reason :P

Profile icon
RolandJLevy

Hi

@ch1ck3n
, thanks a lot. When you say you were blocked from Google translate, do you mean blocked from the official website? Also, what did you mean by saying 'jest'?

Profile icon
ch1ck3n

@RolandJLevy
translated "e" into french

Profile icon
RolandJLevy

Hi

@ch1ck3n
, not sure what that means... Can you explain?

Profile icon
ch1ck3n

@RolandJLevy
"E" is just my way of saying it's pog

Profile icon
ch1ck3n

@ch1ck3n
hence this is amazing

Profile icon
RolandJLevy

@ch1ck3n
ah, ok, I got it. Thanks! :)

Profile icon
HahaYes

I'm loving this

Profile icon
RolandJLevy

@HahaYes
thanks!

Profile icon
Wilke000

So fun to play around with lol

Profile icon
RolandJLevy

@Wilke000
thanks!

Profile icon
DynamicSquid

Sweet!

Profile icon
RolandJLevy

@DynamicSquid
thanks 👍

Profile icon
LTI2

viileä! made with translation

Profile icon
RolandJLevy

Hi

@LTI2
, nice one! I think that's cool in Finish 🇫🇮

Profile icon
LTI2

@rjlevy
yes right

Profile icon
AndrewZarudnyi

I've already found a solution for the finest approach to do it; for example, you can now go to the specialists without much trouble or problems and they will assist you. You may witness for yourself by downloading a useful tool called english to german , which can assist you in completing any translation for your firm. When I need to translate documents, I use it. I hope you found it beneficial!

Profile icon
RolandJLevy

@AndrewZarudnyi
thanks for your message but the purpose of the translation app was to learn how to build an application from scratch, using Node, Express and an API.

I'm interested in software development and this was just an exersize for me to learn something new. I don't really use translating software much but thanks for the link anyway :)

Profile icon
Soccer135246

WAAAAAAAT? No translating into chinese?

Profile icon
RolandJLevy

Hi

@Soccer135246
, thank you for your suggestion. I have just added Chinese to the list of languages. I had to choose either Chinese Simplified or Chinese Traditional. Which one do you think is better? Here is a list of all the languages supported by Google Translate: https://cloud.google.com/translate/docs/languages

Profile icon
potatojs

great job!

i see arabic in there and there isn't a flag,
you can just write AR for arabic it's better then nothing :D

Profile icon
RolandJLevy

thanks

@potatojs
! Thanks for the suggestion - I've added Arabic with a flag, it's at the top of the dropdown menu, as shown attached. Can you see it now?
Screenshot 2020-08-08 at 22.20.49

Profile icon
potatojs

no, i don't see any flags, maybe the problem is in my [email protected]

Profile icon
RolandJLevy

Hi

@potatojs
, that's strange. I know there have been issues with emojis working on Windows 10 in the past. Which operating system and browser are you using?

Profile icon
potatojs

hi

@rjlevy
, i am using windows 7 chrome

Profile icon
RolandJLevy

Hi

@potatojs
, I think it's because Microsoft doesn't support any country flag emojis on Windows. Explained here:

https://www.reddit.com/r/Windows10/comments/eqh5gv/flag_emojis_not_rendering_is_this_a_windows_10/

https://blog.emojipedia.org/emoji-flags-explained/

https://answers.microsoft.com/en-us/windows/forum/all/flag-emoji/85b163bc-786a-4918-9042-763ccf4b6c05

Profile icon
zplusfour

why there is no arabic?

Profile icon
RolandJLevy

Hi

@ZDev1
, I want to add Arabic but I don't know what flag to use as each flag is specific to only one country

Profile icon
zplusfour

@rjlevy
add UAE or KSA
KSA = saudi arabia
UAE = united arabic states
btw I am arabian and I'd like to see it ;)

Profile icon
RolandJLevy

Hi

@ZDev1
, thank's for the suggestion. I have added Arabic, but we can only choose one flag because Google Translate API only has one option for Arabic: ar [listed here] (https://www.labnol.org/code/19899-google-translate-languages)

I chose the United Arabic Emirates flag shown here but we can change it to the Saudi Arabia flag if you want.

Profile icon
DakshVohra

could you put hindi?

Profile icon
RolandJLevy

Hi

@DakshVohra
, thanks for the suggestion. I've added Hindi 👍

Profile icon
DakshVohra

@rjlevy
sick! thanks!

Profile icon
zplusfour

image


Also I don't prefer to use bodyParser
You can use only express.json() and express.urlencoded({ extended: false })

Profile icon
RolandJLevy

Hi

@ZDev1
, thanks for pointing out the error. It was working fine until last night. Do you have any suggestions on how to fix this error?

@vitalets/[email protected]' is not in the npm registry.

Profile icon
RolandJLevy

I tried removing the node modules with rm -rf node_modules and reinstalling them but I get the same error...

Profile icon
zplusfour

@rjlevy
so strange

Profile icon
RolandJLevy

Hi

@ZDev1
, I reverted to a previous commit from the Github repo and it's now working again 👍

Profile icon
RolandJLevy

@ZDev1
what alternative to bodyParser do you prefer?

Profile icon
zplusfour

@rjlevy
yey!

Profile icon
zplusfour

@rjlevy
I used bodyParser in the old version of express
Now you can use express itself instead of bodyParser in the new version
Like:

const express = require('express'); const app = express(); app.use(express.urlencoded({ extended: false; })); // The code
Profile icon
RolandJLevy

Hi

@ZDev1
, that's great & thanks for explaining. I didn't know this was possible. I'm going to try to implement it as you've suggested 👍

Profile icon
RolandJLevy

Hi

@ZDev1
, I've removed bodyParser and implemented your suggestion - thanks again 👍

Profile icon
zplusfour

@rjlevy
ok nice!
also np!

Profile icon
RolandJLevy

Hey

@ZDev1
, I just made a new game called SOLITAIRE - check it out here! https://repl.it/talk/share/GAME-Play-SOLITAIRE-another-awesome-game/54194

Profile icon
zplusfour

@rjlevy
sure!

Profile icon
zplusfour

image


There are some errors!

Profile icon
k9chelsea2

cool

Profile icon
RolandJLevy

@NDLFOREVER
thanks. The fun part was getting the flag emojis to work 😁

Profile icon
k9chelsea2

nice, I speak 2 languages fluently and am learning another one, since I spend most of my days on repl.it at the moment trying to learn c++ and get better at css, I tend to have a repl window open when I'm doing other stuff like trying to learn German it will be much easier to access this repl than go through the trouble of googling google translate this is so much easier than it lol

Profile icon
RolandJLevy

Hi

@NDLFOREVER
, that's great to hear. I haven't done any C++ but I've done quite a lot of CSS. I admire you for learning German and happy to hear you can do your translation through repl.it now. Let me know if you have any suggestions to improve the app :)