The code below is for the Google Plus button in Español
<script type="text/javascript" src="https://apis.google.com/js/plusone.js">
{lang: 'es'}
</script>
I also use “English” and “Deutsch” languages in my website. How do I add these languages {lang: ‘en’} and {lang: ‘de’} to the above code using if statement or a switch statement?
Mozilla has a good overview of switch statements in JavaScript