Localized all relevant numbers visible to end-user (#2488)

This commit is contained in:
Paweł
2021-03-06 15:03:33 +01:00
committed by GitHub
parent 346cd2b86d
commit 1eb6aa64db
6 changed files with 21 additions and 7 deletions
+7
View File
@@ -1,5 +1,6 @@
#include "Helpers.hpp"
#include <QLocale>
#include <QUuid>
namespace chatterino {
@@ -35,4 +36,10 @@ QString shortenString(const QString &str, unsigned maxWidth)
return shortened;
}
QString localizeNumbers(const int &number)
{
QLocale locale;
return locale.toString(number);
}
} // namespace chatterino