feat(translations): first half of 7.0 translation support

This commit is contained in:
David Ralph
2022-06-03 21:18:47 +01:00
parent cd9eed0c81
commit 109918a2c6
12 changed files with 108 additions and 41 deletions

View File

@@ -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({