Nextcloud L10n helpers for apps and libraries https://npmjs.org/@nextcloud/l10n
GPL-3.0 License
Bot releases are visible (Hide)
escape
option per parameter replacing.// Example
t(
'my-app',
'{a}{userInput}{a_end}',
{
a: {
value: '<a>',
escape: false,
},
userInput: somePossiblyInsecureValue, // This will be escaped
a_end: {
value: '</a>',
escape: false,
}
},
)
Published by susnux 6 months ago
Published by susnux 6 months ago
t
and n
for translate
and translatePlural
by @ShGKme in https://github.com/nextcloud-libraries/nextcloud-l10n/pull/727
Full Changelog: https://github.com/nextcloud-libraries/nextcloud-l10n/compare/v2.2.0...v3.0.0
Published by susnux over 1 year ago
isRTL
was added to check whether a given, or the current, language is read right-to-left #639 (susnux)node16
or nodenext
module resolution #633 (susnux)NextcloudWindowWithRegistry
type for Nextcloud 27 #640 (susnux)loadTranslations
by handling edge cases where invalid data is retrieved #644 (susnux)Published by ChristophWurst over 1 year ago
Translations
type and add missing documentation #566 (susnux)Published by skjnldsv almost 2 years ago
From 2.0.0, this package is standalone and do not rely on window OC variables to function.
Published by skjnldsv almost 2 years ago