mirror of
https://github.com/scratchfoundation/scratchjr.git
synced 2024-11-28 18:15:37 -05:00
Merge pull request #6 from LLK/language-analytics
Add analytics event for changing the language
This commit is contained in:
commit
ef09a72724
1 changed files with 3 additions and 1 deletions
|
@ -196,7 +196,9 @@ export default class Lobby {
|
|||
|
||||
languageButton.ontouchstart = function (e) {
|
||||
ScratchAudio.sndFX('tap.wav');
|
||||
Cookie.set('localization', window.Settings.supportedLocales[e.target.textContent]);
|
||||
let newLocale = window.Settings.supportedLocales[e.target.textContent];
|
||||
Cookie.set('localization', newLocale);
|
||||
iOS.analyticsEvent('lobby', 'language_changed', newLocale);
|
||||
window.location = '?place=gear';
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue