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') Copy
import { getGettextBuilder } from '@nextcloud/l10n/gettext'const gt = getGettextBuilder() .detectLocale() // or use setLanguage() .addTranslation(/* ... */) .build()gt.gettext('some string to translate')
This module provides functionality to translate applications independent from Nextcloud
Example