Extend language code handling

This commit is contained in:
Shadowghost
2023-03-09 14:13:57 +01:00
parent 47b6f74533
commit daefdaf8b0
3 changed files with 55 additions and 36 deletions

View File

@@ -30,8 +30,9 @@ namespace MediaBrowser.Model.Globalization
/// Gets the rating level.
/// </summary>
/// <param name="rating">The rating.</param>
/// <param name="countryCode">The optional two letter ISO language string.</param>
/// <returns><see cref="int" /> or <c>null</c>.</returns>
int? GetRatingLevel(string rating);
int? GetRatingLevel(string rating, string? countryCode = null);
/// <summary>
/// Gets the localized string.