mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-06-12 05:21:15 -04:00
Use missingTranslation: ignore in formatMessage
This commit is contained in:
parent
540eaf6b8b
commit
01e1881e74
1 changed files with 7 additions and 1 deletions
|
@ -1121,7 +1121,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