Load
Declaring type: JsonLocalizerProvider
Module: Neo.Localization
Assembly: Neo.Localization.dll
Source file: JsonLocalizerProvider.rvn
Overloads / Variants
Load
func Load(culture: Culture, resourceType: TypeInfo) -> Result<Localizer, LocalizationError>
Source file: JsonLocalizerProvider.rvn
Loads resources for a nominal runtime type using the same simple-name scope as the generic Load overload.
Parameters
| Name | Type | Description |
|---|---|---|
culture |
Culture | |
resourceType |
TypeInfo |
Return value
Result<Localizer, LocalizationError>
Load
func Load(culture: Culture, scope: string) -> Result<Localizer, LocalizationError>
Source file: JsonLocalizerProvider.rvn
Loads scope.culture.json, scope.language.json and scope.json, with per-key fallback. An empty scope uses culture.json, language.json and invariant.json instead. Invariant selects only the invariant file. Scope must be a filename component, not a path. Missing files yield an empty catalogue if no files exist. Each file has the documented byte and entry limits.
Parameters
| Name | Type | Description |
|---|---|---|
culture |
Culture | |
scope |
String |
Return value
Result<Localizer, LocalizationError>
Load
func Load(culture: Culture) -> Result<Localizer, LocalizationError>
Source file: JsonLocalizerProvider.rvn
Loads unscoped culture, language and invariant catalogues from an explicit directory. Fallback is per key. Missing files are skipped; all other failures are returned.
Parameters
| Name | Type | Description |
|---|---|---|
culture |
Culture |
Return value
Result<Localizer, LocalizationError>
Load
func Load<T>(culture: Culture) -> Result<Localizer<T>, LocalizationError>
Source file: JsonLocalizerProvider.rvn
Loads using T's simple type name as the optional resource scope, retaining typed catalogue identity. Types with the same simple name share a scope; use explicit scope loading to avoid collisions.
Parameters
| Name | Type | Description |
|---|---|---|
culture |
Culture |
Return value
Result<Localizer<T>, LocalizationError>
Load
static func Load(path: string) -> Result<Localizer, LocalizationError>
Source file: JsonLocalizerProvider.rvn
Reads one explicit UTF-8 file synchronously using the bounded blocking storage provider. The provider closes the file before returning. No ambient culture, path inference or caching is applied. Use Read with an InputStream for asynchronous input.
Parameters
| Name | Type | Description |
|---|---|---|
path |
String |