Skip to content

Commit

Permalink
Atualizar o ContentLocalizationManager.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
AgentePanela authored Jan 26, 2025
1 parent fddef4a commit ff1e5a0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Content.Shared/Localizations/ContentLocalizationManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public sealed class ContentLocalizationManager
[Dependency] private readonly ILocalizationManager _loc = default!;

// If you want to change your codebase's language, do it here.
private const string Culture = "en-US";
private const string Culture = "pt-BR";

/// <summary>
/// Custom format strings used for parsing and displaying minutes:seconds timespans.
Expand All @@ -27,6 +27,8 @@ public void Initialize()
{
var culture = new CultureInfo(Culture);

var fallbackCulture = new CultureInfo("en-US");

_loc.LoadCulture(culture);
_loc.AddFunction(culture, "PRESSURE", FormatPressure);
_loc.AddFunction(culture, "POWERWATTS", FormatPowerWatts);
Expand Down

0 comments on commit ff1e5a0

Please sign in to comment.