Enhance internationalization support by integrating language selection for school names, updating UI components for localization, and revising documentation. Implement locale-aware formatting for dates and strings, ensuring a seamless user experience in both Russian and English. Update tests to cover new language features.
This commit is contained in:
@@ -100,7 +100,8 @@ public sealed class SchoolRegistry : IDisposable
|
||||
}
|
||||
|
||||
/// <summary>A name the player has not used yet, for the "random" button in the creation form.</summary>
|
||||
public string SuggestName() => NameGenerator.Next(_schools.Select(school => school.Name));
|
||||
public string SuggestName(SchoolNameLanguage language = SchoolNameLanguage.Russian) =>
|
||||
NameGenerator.Next(_schools.Select(school => school.Name), language);
|
||||
|
||||
/// <summary>Trims, strips control characters and enforces the length limit.</summary>
|
||||
public static bool TryNormalizeName(string? name, out string normalized)
|
||||
|
||||
Reference in New Issue
Block a user