Module @nextcloud/l10n

This module provides all functions for the OC.L10N namespace

import { translate as t, translatePlural as n } from '@nextcloud/l10n'
console.log(t('my-app', 'Hello {name}', { name: 'J. Doe' }));
const count = 2;
console.warn(n('my-app', 'Got an error', 'Got multiple errors', 2));

Modules

<internal>

Type Aliases

Translations
WeekDay

Functions

getCanonicalLocale
getDayNames
getDayNamesMin
getDayNamesShort
getFirstDay
getLanguage
getLocale
getMonthNames
getMonthNamesShort
getPlural
isRTL
loadTranslations
register
translate
translatePlural
unregister

References

n → translatePlural
t → translate
MMNEPVFCICPMFPCPTTAAATR