Search Results for

    Show / Hide Table of Contents

    Class Localization

    Main API facade for accessing and managing AI-powered spreadsheet tables. Provides centralized access to database and localization table management.

    Inheritance
    object
    Localization
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Glitch9.AIDevKit.Sheets
    Assembly: Glitch9.AIDevKit.Sheets.dll
    Syntax
    public static class Localization

    Properties

    | Edit this page View Source

    CurrentLocale

    The currently set Locale for the application. This is not EnUS. This is the Locale that the user has selected.

    Declaration
    public static Locale CurrentLocale { get; set; }
    Property Value
    Type Description
    Locale
    | Edit this page View Source

    IsInitialized

    Gets a value indicating whether the localization system has been initialized.

    Declaration
    public static bool IsInitialized { get; }
    Property Value
    Type Description
    bool
    | Edit this page View Source

    Sheets

    The localization tables that are loaded into the application. The key is the table name and the value is the SpreadsheetTable.

    Declaration
    public static IReadOnlyDictionary<string, ILocalizationSheet> Sheets { get; }
    Property Value
    Type Description
    IReadOnlyDictionary<string, ILocalizationSheet>

    Methods

    | Edit this page View Source

    Initialize(params ILocalizationSheet[])

    Initializes the localization system with the specified preloaded tables.

    Declaration
    public static void Initialize(params ILocalizationSheet[] preloadedSheets)
    Parameters
    Type Name Description
    ILocalizationSheet[] preloadedSheets

    The tables to preload into the localization system

    | Edit this page View Source

    RegisterEventCallback<T>(Action<T>)

    Registers a callback to be invoked when a localization event occurs.

    Declaration
    public static void RegisterEventCallback<T>(Action<T> callback) where T : LocalizationEvent
    Parameters
    Type Name Description
    Action<T> callback

    The callback function to invoke when the event occurs

    Type Parameters
    Name Description
    T

    The type of localization event to listen for

    | Edit this page View Source

    RegisterEventHandler<T>(IEventHandler<T>)

    Declaration
    public static void RegisterEventHandler<T>(IEventHandler<T> handler) where T : LocalizationEvent
    Parameters
    Type Name Description
    IEventHandler<T> handler
    Type Parameters
    Name Description
    T
    | Edit this page View Source

    RegisterSheet(ILocalizationSheet)

    Registers a table with the appropriate table manager based on its category.

    Declaration
    public static void RegisterSheet(ILocalizationSheet preloadedTable)
    Parameters
    Type Name Description
    ILocalizationSheet preloadedTable

    The table to register

    | Edit this page View Source

    UnregisterEventCallback<T>(Action<T>)

    Unregisters a previously registered localization event callback.

    Declaration
    public static void UnregisterEventCallback<T>(Action<T> callback) where T : LocalizationEvent
    Parameters
    Type Name Description
    Action<T> callback

    The callback function to unregister

    Type Parameters
    Name Description
    T

    The type of localization event

    | Edit this page View Source

    UnregisterEventHandler<T>(IEventHandler<T>)

    Declaration
    public static void UnregisterEventHandler<T>(IEventHandler<T> handler) where T : LocalizationEvent
    Parameters
    Type Name Description
    IEventHandler<T> handler
    Type Parameters
    Name Description
    T
    | Edit this page View Source

    UnregisterSheet(string)

    Unregisters a table from the specified category manager.

    Declaration
    public static void UnregisterSheet(string tableName)
    Parameters
    Type Name Description
    string tableName

    The name of the table to unregister

    • Edit this page
    • View Source
    In this article
    Back to top AI DevKit Documentation