diff options
Diffstat (limited to 'core/src/Utils/I18n.hpp')
-rw-r--r-- | core/src/Utils/I18n.hpp | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/core/src/Utils/I18n.hpp b/core/src/Utils/I18n.hpp index a4dd225..6285d60 100644 --- a/core/src/Utils/I18n.hpp +++ b/core/src/Utils/I18n.hpp @@ -11,7 +11,8 @@ #include <variant> #include <vector> -class I18n { +class I18n +{ public: static inline Signal<> OnLanguageChange{}; static inline Signal<> OnUnload{}; @@ -37,19 +38,23 @@ public: static std::string_view LookupLanguage(std::string_view lang); }; -struct StringArgument { +struct StringArgument +{ std::string Value; }; -struct IntArgument { +struct IntArgument +{ int Value; }; -struct FloatArgument { +struct FloatArgument +{ double Value; }; -class BasicTranslation { +class BasicTranslation +{ private: std::string mContent; @@ -59,7 +64,8 @@ public: const char* Get() const; }; -class FormattedTranslation { +class FormattedTranslation +{ public: using Element = std::variant<std::string, int>; using Argument = std::string; @@ -74,7 +80,8 @@ public: std::string Format(std::span<Argument> args); }; -class NumericTranslation { +class NumericTranslation +{ public: // TODO }; |