Pending Approval Mode

    In some sites, translations might be needed to be approved by some moderators before they are published.

    So you may add these unapproved texts to your local text registry but want them to be shown only to moderators for them to check how they will look in live site when approved.

    LocalTextRegistry allows you to mark some texts as pending approval, and use these translations for only approval contexts (e.g. when a moderator is logged in).

    Implement this interface and register it through the service locator (Dependency class).

    IsApprovalMode property is used to determine if current context is in approval mode (e.g. used by a moderator).

    Adds a translation to local text table for pending approval texts. These texts are only used when current context is in pending approval mode.

    Other TryGet overload returns unapproved texts only when ILocalTextContext provider returns true for IsApprovalMode property.

    Returns a dictionary of all currently registered translations for all text keys in a language.

    Dictionary keys are local text keys, while values are translations.