Hi
I'm trying to build a weather command translating the parts from English to Spanish, for that I based on this post /t/weather-to-another-language/1534638544805433344
So far so good, but I wanted to go a little further and also translate the variables that the command throws, but I ran into the problem that I do not reach the characters ... my question is if there is a way to use a pastebin to replace this part of the command in specific and so I can translate it in its entirety. Note: I had to omit the "at" part in the wind forecast because it gave error since it uses the word "temperatura" and modifies the "at" inside the word, I do not know if there is a way to correct this too.
$(eval '$(weather $(query))'.replace('Weather for', 'El tiempo para').replace('Conditions are', 'Las condiciones meteorológicas son').replace('with a temperature of', 'con una temperatura de').replace('The wind is blowing from the', 'La dirección del viento es').replace('and the current humidity is', 'y la humedad actual es del').replace('No location provided', 'Escribe tu ciudad/país en Inglés.'))
.replace('Fair', 'buen tiempo').replace('Snow Shower', 'nevadas').replace('Mostly', 'mayormente').replace('Clear', 'cielo despejado').replace('Cloudy', 'nublado').replace('Partly', 'parcialmente').replace('Sunny', 'soleado').replace('rain', 'lluvioso').replace('Wind', 'ventoso'))
I thank you in advance, any idea is welcome, my head exploded trying, I am noob in all this command programming, but little by little I am learning thanks to this site and to all those who share their knowledge.
