diff --git a/src/extensions/scratch3_text2speech/index.js b/src/extensions/scratch3_text2speech/index.js
index 6cc28406f..4313c4fbd 100644
--- a/src/extensions/scratch3_text2speech/index.js
+++ b/src/extensions/scratch3_text2speech/index.js
@@ -298,8 +298,6 @@ class Scratch3SpeakBlocks {
         const gender = this.VOICE_INFO[state.voiceId].gender;
         const playbackRate = this.VOICE_INFO[state.voiceId].playbackRate;
 
-        let locale = this.getViewerLanguageCode();
-
         // @todo localize this?
         if (state.voiceId === KITTEN_ID) {
             words = words.replace(/\w+/g, 'meow');
@@ -307,7 +305,7 @@ class Scratch3SpeakBlocks {
 
         // Build up URL
         let path = `${SERVER_HOST}/synth`;
-        path += `?locale=${locale}`;
+        path += `?locale=${this.getViewerLanguageCode()}`;
         path += `&gender=${gender}`;
         path += `&text=${encodeURI(words)}`;