Begin to use text macros (#914)

This commit is contained in:
Hugal31
2020-05-28 00:58:57 +02:00
committed by GitHub
parent a5725aec4c
commit ab6bc42a4a
3 changed files with 19 additions and 7 deletions

View File

@@ -6,7 +6,8 @@
using Robust.Shared.Interfaces.Map;
using Robust.Shared.IoC;
using Robust.Shared.Localization;
using Robust.Shared.Prototypes;
using Robust.Shared.Localization.Macros;
using Robust.Shared.Prototypes;
namespace Content.Shared
{
@@ -25,6 +26,9 @@
{
IoCManager.InjectDependencies(this);
var textMacroFactory = IoCManager.Resolve<ITextMacroFactory>();
textMacroFactory.DoAutoRegistrations();
// Default to en-US.
_localizationManager.LoadCulture(new CultureInfo(Culture));
}