Class LocalizerExtensions
- Namespace
- CounterStrikeSharp.API.Core.Translations
- Assembly
- CounterStrikeSharp.API.dll
public static class LocalizerExtensions
- Inheritance
-
objectLocalizerExtensions
Methods
ForPlayer(IStringLocalizer, CCSPlayerController?, string)
Returns a localized string using the locale of the specified player.
public static string ForPlayer(this IStringLocalizer localizer, CCSPlayerController? player, string key)
Parameters
localizer
IStringLocalizerplayer
CCSPlayerControllerkey
string
Returns
ForPlayer(IStringLocalizer, CCSPlayerController?, string, params object[])
Returns a localized string using the locale of the specified player.
public static string ForPlayer(this IStringLocalizer localizer, CCSPlayerController? player, string key, params object[] args)
Parameters
localizer
IStringLocalizerplayer
CCSPlayerControllerkey
stringargs
object[]