Merge pull request 'fix(assets): Fix broken string for bytes on disk size' (#139) from assets-fix into master

Reviewed-on: kherel/selfprivacy.org.app#139
Reviewed-by: Inex Code <inex.code@selfprivacy.org>
pull/142/head
NaiJi ✨ 2022-10-23 21:24:24 +03:00
commit d837989940
3 changed files with 3 additions and 1 deletions

View File

@ -172,6 +172,7 @@
"gb": "{} GB",
"mb": "{} MB",
"kb": "{} KB",
"bytes": "Bytes",
"extend_volume_button": "Extend volume",
"extending_volume_title": "Extending volume",
"extending_volume_description": "Resizing volume will allow you to store more data on your server without extending the server itself. Volume can only be extended: shrinking is not possible.",

View File

@ -172,6 +172,7 @@
"gb": "{} GB",
"mb": "{} MB",
"kb": "{} KB",
"bytes": "Байт",
"extend_volume_button": "Расширить хранилище",
"extending_volume_title": "Расширение хранилища",
"extending_volume_description": "Изменение размера хранилища позволит вам держать больше данных на вашем сервере без расширения самого сервера. Объем можно только увеличить: уменьшить нельзя.",

View File

@ -26,7 +26,7 @@ class DiskSize {
@override
String toString() {
if (byte < 1024) {
return '${byte.toStringAsFixed(0)} ${tr('bytes')}';
return '${byte.toStringAsFixed(0)} ${tr('storage.bytes')}';
} else if (byte < 1024 * 1024) {
return 'storage.kb'.tr(args: [kibibyte.toStringAsFixed(1)]);
} else if (byte < 1024 * 1024 * 1024) {