• JMap.Language.getBundleById

    Returns the translation bundle identified by the id

    Parameters

    • bundleId: string

      the id of the bundle to retrieve

    Returns JTranslationBundle

    Throws

    if bundle id is not correct or if bundle not found

    Example

    JMap.Language.getBundleById("my-custom-bundle")
    // {id: "my-custom-bundle", defaultLocale: "fr", ...}