Skip to main content

ILocalizationManager

Interface for multi-language translation support.

Namespace: ControlBee.Interfaces

Methods

Translate

Translates a key to the current language, with optional argument substitution.

string Translate(string key, Dictionary<string, string>? args = null);

Parameters:

  • key — The translation key.
  • args — Optional arguments to substitute into the translated string.

Returns: The translated string.

Load

Loads translations from a JSON file.

void Load(string jsonPath);

Parameters:

  • jsonPath — The path to the JSON translations file.

GetValue

Returns the raw translation value for a key.

string? GetValue(string key);

Returns: The translation value, or null if not found.