mangadex-full-api - v6.2.0
    Preparing search index...

    Class LocalizedString

    This class represents a map of locales and their associated strings. Each string can be accessed by using the locale as the key (e.g. 'en', 'jp'). localString and setGlobalLocale can be used to automatically access a preferred locale.

    var locStr;
    locStr['en']; // English String
    LocalizedString.setGlobalLocale('jp');
    locStr.localString; // Japanese String

    Implements

    Indexable

    • [x: string]: string
    Index

    Constructors

    Accessors

    Methods

    Constructors

    Accessors

    • get localString(): string

      The string associated with the current global locale (set with setGlobalLocale()). If the global locale is not available for this string, the English string is returned. If that is also unavailable, the next available locale is returned. If no locales are available, an empty string is returned.

      Returns string

    Methods