Table of Contents

Class CoreJsonStringLocalizerFactory

Namespace
CounterStrikeSharp.API.Core.Translations
Assembly
CounterStrikeSharp.API.dll
public class CoreJsonStringLocalizerFactory : IStringLocalizerFactory
Inheritance
object
CoreJsonStringLocalizerFactory
Implements

Constructors

CoreJsonStringLocalizerFactory(IScriptHostConfiguration)

public CoreJsonStringLocalizerFactory(IScriptHostConfiguration scriptHostConfiguration)

Parameters

scriptHostConfiguration IScriptHostConfiguration

Methods

Create(string, string)

Creates an IStringLocalizer.

public IStringLocalizer Create(string baseName, string location)

Parameters

baseName string

The base name of the resource to load strings from.

location string

The location to load resources from.

Returns

IStringLocalizer

The IStringLocalizer.

Create(Type)

Creates an IStringLocalizer using the Assembly and FullName of the specified Type.

public IStringLocalizer Create(Type resourceSource)

Parameters

resourceSource Type

The Type.

Returns

IStringLocalizer

The IStringLocalizer.