mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-06-15 15:01:30 -04:00
Merge 01e1881e74
into f207757ef0
This commit is contained in:
commit
71f5c4b89e
1 changed files with 7 additions and 1 deletions
|
@ -1152,7 +1152,13 @@ class VirtualMachine extends EventEmitter {
|
|||
*/
|
||||
setLocale (locale, messages) {
|
||||
if (locale !== formatMessage.setup().locale) {
|
||||
formatMessage.setup({locale: locale, translations: {[locale]: messages}});
|
||||
formatMessage.setup({
|
||||
locale: locale,
|
||||
translations: {
|
||||
[locale]: messages
|
||||
},
|
||||
missingTranslation: 'ignore' // Do not console.warn() missing translations (#2270)
|
||||
});
|
||||
}
|
||||
return this.extensionManager.refreshBlocks();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue