@nextcloud/l10n

    Module @nextcloud/l10n/gettext

    This module provides functionality to translate applications independent from Nextcloud

    import { getGettextBuilder } from '@nextcloud/l10n/gettext'
    const gt = getGettextBuilder()
    .detectLocale() // or use setLanguage()
    .addTranslation(/* ... */)
    .build()
    gt.gettext('some string to translate')

    Classes

    GettextBuilder
    GettextWrapper

    Interfaces

    GettextTranslation
    GettextTranslationBundle
    GettextTranslationContext

    Functions

    getGettextBuilder
    MMNEPVFCICPMFPCPTTAAATR