mirror of
https://github.com/mue/mue.git
synced 2026-07-27 18:51:05 +02:00
feat(translations): first half of 7.0 translation support
This commit is contained in:
@@ -25,7 +25,7 @@ export default class FileUpload extends PureComponent {
|
||||
const settingsSize = new TextEncoder().encode(JSON.stringify(settings)).length;
|
||||
if (videoCheck(file) === true) {
|
||||
if (settingsSize + file.size > 4850000) {
|
||||
return toast('Not enough storage!');
|
||||
return toast(this.getMessage('toasts.no_storage'));
|
||||
}
|
||||
|
||||
return this.props.loadFunction(file);
|
||||
@@ -34,7 +34,7 @@ export default class FileUpload extends PureComponent {
|
||||
// todo: change number
|
||||
compressAccurately(file, 200).then(async (res) => {
|
||||
if (settingsSize + res.size > 4850000) {
|
||||
return toast('Not enough storage!');
|
||||
return toast(this.getMessage('toasts.no_storage'));
|
||||
}
|
||||
|
||||
this.props.loadFunction({
|
||||
|
||||
Reference in New Issue
Block a user