I have a script I'm using with the google translate api. I am translating like this:
LanguageApp.translate(content, 'en', 'es')
I now need to translate content
to many more languages, and as languages are added or dropped I don't want to update much, so how can I get the name of a language from its language 'code'?
I'm expecting something like this
LanguageApp.getNameFromCode('es')
and it would return "spanish" in this case.
How can I achieve this?
If it's not possible, I can use JS to on my frontend, or PHP in my backend, but using GAS is the most preferable way for me.