Member group
Create
Declaring type: JsonLocalizerProvider
Module: Neo.Localization
Assembly: Neo.Localization.dll
Source file: JsonLocalizerProvider.rvn
Overloads / Variants
Create
static func Create(json: string) -> Result<Localizer, LocalizationError>
Source file: JsonLocalizerProvider.rvn
Creates a catalogue from JSON text without encoding it into a temporary byte array.
Parameters
| Name | Type | Description |
|---|---|---|
json |
String |
Return value
Result<Localizer, LocalizationError>
Create
static func Create(utf8: ReadOnlySlice<byte>) -> Result<Localizer, LocalizationError>
Source file: JsonLocalizerProvider.rvn
Creates an owned, immutable catalogue from a borrowed complete UTF-8 document. The input is not retained; parsing allocates stored keys, values and the lookup map.
Parameters
| Name | Type | Description |
|---|---|---|
utf8 |
ReadOnlySlice<Byte> |