aboutsummaryrefslogtreecommitdiff
path: root/src/common/Common.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/Common.h')
-rw-r--r--src/common/Common.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/common/Common.h b/src/common/Common.h
index e97288996f8..732583da0de 100644
--- a/src/common/Common.h
+++ b/src/common/Common.h
@@ -103,8 +103,13 @@ TC_COMMON_API LocaleConstant GetLocaleByName(std::string const& name);
#pragma pack(push, 1)
-struct TC_COMMON_API LocalizedString
+struct LocalizedString
{
+ constexpr char const* operator[](LocaleConstant locale) const
+ {
+ return Str[locale];
+ }
+
char const* Str[TOTAL_LOCALES];
};