Options
All
  • Public
  • Public/Protected
  • All
Menu

@nextcloud/l10n

@nextcloud/l10n

Build Status npm Documentation

Nextcloud L10n helpers for apps and libraries.

Installation

npm i -S @nextcloud/l10n

Usage

In order to not break the l10n string extraction scripts, make sure to alias the imported function to match the legacy syntax:

import {translate as t, translatePlural as n} from '@nextcloud/l10n'

t('myapp', 'Hello!')
n('myapp', '%n cloud', '%n clouds', 100)

Generated using TypeDoc