@nextcloud/l10n
    interface GettextBuilder {
        addTranslation(language: string, data: GettextTranslationBundle): this;
        build(): GettextWrapper;
        detectLanguage(): this;
        detectLocale(): this;
        enableDebugMode(): this;
        setLanguage(language: string): this;
    }
    Index

    Methods

    • Register a new translation bundle for a specified language.

      Please note that existing translations for that language will be overwritten.

      Parameters

      Returns this

    • Try to detect locale from context with en as fallback value. This only works within a Nextcloud page context.

      Returns this

    • Try to detect locale from context with en as fallback value This only works within a Nextcloud page context.

      Returns this

      use detectLanguage instead.

    • Parameters

      • language: string

      Returns this

    MMNEPVFCICPMFPCPTTAAATR