We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c39ae3b commit 0c16795Copy full SHA for 0c16795
1 file changed
public/js/script.js
@@ -161,7 +161,8 @@ function buildSentences() {
161
}
162
163
function addWord() {
164
- let randomWord = words[Math.floor(Math.random() * words.length)];
+ let language = words[config.language]
165
+ let randomWord = language[Math.floor(Math.random() * language.length)];
166
wordsList.push(randomWord);
167
let w = "<div class='word'>";
168
for (let c = 0; c < randomWord.length; c++) {
0 commit comments