ComPDFKit Web SDK
    Preparing search index...

    Function getAvailableLanguages

    • Gets the available language codes: the codes in the settings dialog language list (the 6 built-in languages plus those added by addLanguage), together with the languages whose resources were injected by setTranslations.

      Returns string[]

      The language codes. *

      const codes = instance.UI.getAvailableLanguages(); // ['en', 'zh-CN', ...]