Class IlcIntl

WARNING: this class shouldn't be imported directly in the apps or adapters. Use IlcAppSdk instead.

Hierarchy

  • IlcIntl

Constructors

Methods

  • Get localisation manifest file. File could be accessible optionally. The trick is useful

    Returns undefined | string

  • Allows to fetch all supported values for currency & locale

    Returns {
        currency: string[];
        locale: string[];
    }

    • currency: string[]
    • locale: string[]
  • Allows to convert plain URL into a one that contains i18n information.

    Parameters

    • url: string

      absolute path or absolute URI. Ex: "/test?a=1" or "http://tst.com/"

    • configOverride: {
          locale?: string;
      } = {}

      allows to override current i18n configuration & retrieve localized URL for desired configuration.

      • Optional locale?: string

    Returns string

  • [CSR ONLY] Allows to watch changes to locale or currency that are happening at the client side.

    Returns

    • callback that can be used to unsubscribe from changes

    Type Parameters

    • T

    Parameters

    Returns (() => void)

      • (): void
      • Returns void

  • Allows to parse URL and receive "non-localized" URL and information about locale that was encoded in URL.

    Parameters

    • url: string

      absolute path or absolute URI. Ex: "/test?a=1" or "http://tst.com/"

    Returns {
        cleanUrl: string;
        locale: string;
    }

    • cleanUrl: string
    • locale: string
  • [CSR ONLY] In apps that are running under ILC it shouldn't be used directly.

    Returns void

Generated using TypeDoc