nextcloud-libraries/nextcloud-l10n (@nextcloud/l10n)
### [`v3.0.0`](https://togithub.com/nextcloud-libraries/nextcloud-l10n/blob/HEAD/CHANGELOG.md#300---2024-05-02)
[Compare Source](https://togithub.com/nextcloud-libraries/nextcloud-l10n/compare/v2.2.0...v3.0.0)
[Full Changelog](https://togithub.com/nextcloud-libraries/nextcloud-l10n/compare/v2.2.0...v3.0.0)
##### Breaking changes
Instead of also sanitizing the replacing variables, now only the result is sanitized, see [pull request #648](https://togithub.com/nextcloud-libraries/nextcloud-l10n/pull/648).
This will improve the performance if multiple placeholders are used and it allows this,
while the string is still sanitized:
```js
t(
'See {linkstart}documentation{linkend}',
{
linkstart: '',
linkend: '',
},
// No number
undefined,
{
// Do not escape the result as we want the HTML anchor element
escape: false,
}
)
```
##### Added
- feat: export aliases `t` and `n` for `translate` and `translatePlural`
##### Fixed
- fix!: Only sanitize the result string when replacing variables
##### Changed
- Update NPM to latest LTS v10
- Migrate to vite for transpiling and vitest for testing
- chore: Added more tests for special cases on plural forms
- chore(deps): Bump tough-cookie to 4.1.3
- chore(deps): Bump postcss to 8.4.31
- chore(deps): Bump [@nextcloud/typings](https://togithub.com/nextcloud/typings) to 1.8.0
- chore(deps): Bump dompurify to 3.1.1
- chore(deps): Bump [@nextcloud/router](https://togithub.com/nextcloud/router) to 3.0.1
Configuration
📅 Schedule: Branch creation - "every weekend" in timezone Europe/Berlin, Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
[ ] If you want to rebase/retry this PR, check this box
This PR has been generated by Mend Renovate. View repository job log here.
This PR contains the following updates:
^2.2.0
->^3.0.0
Release Notes
nextcloud-libraries/nextcloud-l10n (@nextcloud/l10n)
### [`v3.0.0`](https://togithub.com/nextcloud-libraries/nextcloud-l10n/blob/HEAD/CHANGELOG.md#300---2024-05-02) [Compare Source](https://togithub.com/nextcloud-libraries/nextcloud-l10n/compare/v2.2.0...v3.0.0) [Full Changelog](https://togithub.com/nextcloud-libraries/nextcloud-l10n/compare/v2.2.0...v3.0.0) ##### Breaking changes Instead of also sanitizing the replacing variables, now only the result is sanitized, see [pull request #648](https://togithub.com/nextcloud-libraries/nextcloud-l10n/pull/648). This will improve the performance if multiple placeholders are used and it allows this, while the string is still sanitized: ```js t( 'See {linkstart}documentation{linkend}', { linkstart: '', linkend: '', }, // No number undefined, { // Do not escape the result as we want the HTML anchor element escape: false, } ) ``` ##### Added - feat: export aliases `t` and `n` for `translate` and `translatePlural` ##### Fixed - fix!: Only sanitize the result string when replacing variables ##### Changed - Update NPM to latest LTS v10 - Migrate to vite for transpiling and vitest for testing - chore: Added more tests for special cases on plural forms - chore(deps): Bump tough-cookie to 4.1.3 - chore(deps): Bump postcss to 8.4.31 - chore(deps): Bump [@nextcloud/typings](https://togithub.com/nextcloud/typings) to 1.8.0 - chore(deps): Bump dompurify to 3.1.1 - chore(deps): Bump [@nextcloud/router](https://togithub.com/nextcloud/router) to 3.0.1Configuration
📅 Schedule: Branch creation - "every weekend" in timezone Europe/Berlin, Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.