i18n with gettext
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
import unittest
|
||||
|
||||
|
||||
def humanbytes(bytes: int) -> str:
|
||||
"""non-localized conversion of bytes to human readable strings"""
|
||||
powers = {0: 'bytes', 1: 'KB', 2: 'MB', 3: 'GB', 4: 'TB', 5: 'PB', 6: 'EB'}
|
||||
|
||||
Reference in New Issue
Block a user