0.1.1 • Published 6 years ago

nextcloud-l10n v0.1.1

Weekly downloads
86
License
GPL-3.0-or-later
Repository
-
Last release
6 years ago

nextcloud-l10n

Nextcloud L10n helpers for apps and libraries

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)