nextcloud-l10n

Nextcloud L10n helpers for apps and libraries https://npmjs.org/@nextcloud/l10n

GPL-3.0 License

Downloads
76.9K
Stars
6
Committers
16

Bot releases are visible (Hide)

nextcloud-l10n - v3.1.0 Latest Release

Published by susnux 6 months ago

3.1.0 - 2024-05-07

Added

  • Allow setting escape option per parameter replacing.
    For more security this should be used instead of disabling paramter escaping,
    see pull request #756
    // 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,
    		}
    	},
    )
    
nextcloud-l10n - v3.0.1

Published by susnux 6 months ago

What's Changed

  • Fixed type definitions.
nextcloud-l10n - v3.0.0

Published by susnux 6 months ago

What's Changed

Full Changelog: https://github.com/nextcloud-libraries/nextcloud-l10n/compare/v2.2.0...v3.0.0

nextcloud-l10n - v2.2.0

Published by susnux over 1 year ago

2.2.0 - 2023-06-26

Full Changelog

Added

  • isRTL was added to check whether a given, or the current, language is read right-to-left #639 (susnux)

Fixed

  • Add typings to the package exports to fix build for Typescript projects using node16 or nodenext module resolution #633 (susnux)
  • Update exported NextcloudWindowWithRegistry type for Nextcloud 27 #640 (susnux)
  • Harden loadTranslations by handling edge cases where invalid data is retrieved #644 (susnux)
nextcloud-l10n - v2.1.0

Published by ChristophWurst over 1 year ago

2.1.0 - 2023-02-25

Full Changelog

Added

  • unregister is now part of the public API #579 (susnux)

Fixed

  • Export the Translations type and add missing documentation #566 (susnux)
  • Fix singular translation in edge cases where plural strings are provided #570 (susnux)
  • Make loading translations use async XMLHttpRequest #571 (susnux)
  • Removed warning "no app translation was registered" #572 (ShGKme)

Changed

  • Added tests and increased code coverage
  • Dependency updates
nextcloud-l10n - v2.0.1

Published by skjnldsv over 1 year ago

2.0.1 - 2023-01-19

Full Changelog

Fixed

Changed

  • Dependency updates
nextcloud-l10n - v2.0.0

Published by skjnldsv almost 2 years ago

2.0.0 - 2023-01-12

Full Changelog

Changed

From 2.0.0, this package is standalone and do not rely on window OC variables to function.

Fixed

  • Provide all translation related functions #542 (susnux)
  • Fix building and deploying documentation #546 (susnux)
nextcloud-l10n - v2.0.0-beta.0

Published by skjnldsv almost 2 years ago

2.0.0-beta.0 - 2023-01-11

Full Changelog

Fixed

  • Provide all translation related functions #542 (susnux)
  • Fix building and deploying documentaton #546 (susnux)