@nextcloud/l10n

    Function loadTranslations

    Load an app's translation bundle if not loaded already.

    Name of the app to load

    Callback to be called when the translations are loaded (deprecated)

    • Load an app's translation bundle if not loaded already.

      Parameters

      • appName: string

        Name of the app to load

      Returns Promise<AppTranslations>

    • Load an app's translation bundle if not loaded already.

      Parameters

      • appName: string

        Name of the app to load

      • callback: (...args: []) => unknown

        Callback to be called when the translations are loaded

      Returns Promise<AppTranslations>

      Use the returned promise instead

    MMNEPVFCICPMFPCPTTAAATR