Skip to content

Releases: nextcloud-libraries/nextcloud-l10n

v3.1.0

06 May 17:27
e0b16b5
Compare
Choose a tag to compare

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,
    		}
    	},
    )

v3.0.1

04 May 11:49
91214fa
Compare
Choose a tag to compare

What's Changed

  • Fixed type definitions.

v3.0.0

02 May 17:37
d5e0897
Compare
Choose a tag to compare

What's Changed

  • Create node-when-unrelated.yml by @skjnldsv in #646
  • chore: Add more tests for special cases on plural forms by @susnux in #647
  • build(deps-dev): Bump @rollup/plugin-typescript from 11.1.1 to 11.1.2 by @dependabot in #649
  • build(deps-dev): Bump tslib from 2.5.3 to 2.6.0 by @dependabot in #650
  • build(deps): Bump dompurify from 3.0.3 to 3.0.4 by @dependabot in #651
  • build(deps-dev): Bump rollup from 3.25.1 to 3.26.0 by @dependabot in #652
  • build(deps-dev): Bump ts-jest from 29.1.0 to 29.1.1 by @dependabot in #653
  • bump jest from 29.5.0 to 29.6.1 by @dependabot in #654
  • chore(deps): Bump tough-cookie from 4.1.2 to 4.1.3 by @dependabot in #657
  • bump jest-environment-jsdom from 29.5.0 to 29.6.1 by @dependabot in #655
  • bump rollup from 3.26.0 to 3.26.2 by @dependabot in #656
  • chore(deps-dev): Bump @types/jest from 29.5.2 to 29.5.3 by @dependabot in #659
  • chore(deps): Bump dompurify from 3.0.4 to 3.0.5 by @dependabot in #658
  • chore(deps-dev): Bump word-wrap from 1.2.3 to 1.2.4 by @dependabot in #660
  • chore(deps-dev): Bump rollup from 3.26.2 to 3.26.3 by @dependabot in #661
  • chore(deps-dev): Bump jest-environment-jsdom from 29.6.1 to 29.6.2 by @dependabot in #662
  • chore: Fix URLs after package was transfered by @susnux in #666
  • chore(deps-dev): Bump tslib from 2.6.0 to 2.6.1 by @dependabot in #663
  • chore(deps-dev): Bump rollup from 3.26.3 to 3.27.0 by @dependabot in #665
  • chore(deps-dev): Bump jest from 29.6.1 to 29.6.2 by @dependabot in #664
  • chore(deps-dev): Bump rollup from 3.27.0 to 3.27.2 by @dependabot in #667
  • chore(deps-dev): Bump rollup from 3.27.2 to 3.28.0 by @dependabot in #668
  • chore(deps-dev): Bump tslib from 2.6.1 to 2.6.2 by @dependabot in #669
  • chore(deps-dev): Bump rollup from 3.28.0 to 3.28.1 by @dependabot in #671
  • chore(deps-dev): Bump typedoc from 0.24.8 to 0.25.0 by @dependabot in #672
  • chore(deps-dev): Bump jest-environment-jsdom from 29.6.2 to 29.6.4 by @dependabot in #674
  • chore(deps-dev): Bump @rollup/plugin-typescript from 11.1.2 to 11.1.3 by @dependabot in #675
  • chore(deps-dev): Bump rollup from 3.28.1 to 3.29.0 by @dependabot in #676
  • chore(deps-dev): Bump typedoc from 0.25.0 to 0.25.1 by @dependabot in #677
  • chore(deps-dev): Bump rollup from 3.29.0 to 3.29.2 by @dependabot in #680
  • chore(deps-dev): Bump jest-environment-jsdom from 29.6.4 to 29.7.0 by @dependabot in #679
  • chore(deps-dev): Bump jest and @types/jest by @dependabot in #678
  • chore(deps-dev): Bump @nextcloud/browserslist-config from 2.3.0 to 3.0.0 by @dependabot in #670
  • fix!: Only sanitize the result string when replacing variables by @susnux in #648
  • chore(deps-dev): Bump @rollup/plugin-typescript from 11.1.3 to 11.1.4 by @dependabot in #681
  • chore(deps): Bump dompurify from 3.0.5 to 3.0.6 by @dependabot in #684
  • chore(deps-dev): Bump rollup from 3.29.2 to 3.29.4 by @dependabot in #683
  • chore(deps-dev): Bump @nextcloud/eslint-config from 8.2.1 to 8.3.0 by @dependabot in #682
  • chore(deps-dev): Bump @types/node-gettext from 3.0.3 to 3.0.4 by @dependabot in #685
  • chore(deps-dev): Bump @rollup/plugin-typescript from 11.1.4 to 11.1.5 by @dependabot in #686
  • chore(deps): Bump postcss from 8.4.24 to 8.4.31 by @dependabot in #688
  • chore(deps-dev): Bump typedoc from 0.25.1 to 0.25.2 by @dependabot in #689
  • chore(deps-dev): Bump @babel/traverse from 7.23.0 to 7.23.2 by @dependabot in #690
  • chore(deps): Bump @nextcloud/router from 2.1.2 to 2.2.0 by @dependabot in #692
  • chore(deps-dev): Bump @types/node-gettext from 3.0.4 to 3.0.5 by @dependabot in #694
  • chore(deps-dev): Bump check-es-compat from 3.0.0 to 3.0.1 by @dependabot in #695
  • chore(deps-dev): Bump check-es-compat from 3.0.1 to 3.1.0 by @dependabot in #697
  • chore(deps-dev): Bump typedoc from 0.25.2 to 0.25.3 by @dependabot in #699
  • chore(deps-dev): Bump @types/jest from 29.5.5 to 29.5.7 by @dependabot in #698
  • chore(deps-dev): Bump @types/node-gettext from 3.0.5 to 3.0.6 by @dependabot in #700
  • chore(deps-dev): Bump @types/jest from 29.5.7 to 29.5.8 by @dependabot in #701
  • chore(deps-dev): Bump @types/jest from 29.5.8 to 29.5.10 by @dependabot in #705
  • chore(deps-dev): Bump mock-xmlhttprequest from 8.2.0 to 8.3.0 by @dependabot in #704
  • chore(deps-dev): Bump typedoc from 0.25.3 to 0.25.4 by @dependabot in #706
  • chore(deps-dev): Bump @types/jest from 29.5.10 to 29.5.11 by @dependabot in #708
  • chore(deps-dev): Bump rollup from 3.29.4 to 4.7.0 by @dependabot in #709
  • chore(deps-dev): Bump rollup from 4.7.0 to 4.9.0 by @dependabot in #710
  • chore(deps-dev): Bump rollup from 4.9.0 to 4.9.1 by @dependabot in #711
  • chore(deps-dev): Bump rollup from 4.9.1 to 4.9.3 by @dependabot in #714
  • chore(deps): Bump dompurify from 3.0.6 to 3.0.8 by @dependabot in #713
  • chore(deps-dev): Bump typedoc from 0.25.4 to 0.25.6 by @dependabot in #715
  • chore(deps-dev): Bump typedoc from 0.25.6 to 0.25.7 by @dependabot in #716
  • chore(deps-dev): Bump rollup from 4.9.3 to 4.9.5 by @dependabot in #717
  • chore(deps-dev): Bump @rollup/plugin-typescript from 11.1.5 to 11.1.6 by @dependabot in #718
  • chore(deps-dev): Bump check-es-compat from 3.1.0 to 3.2.0 by @dependabot in #719
  • chore(deps-dev): Bump rollup from 4.9.5 to 4.9.6 by @dependabot in #720
  • chore(deps): Bump @nextcloud/router from 2.2.0 to 2.2.1 by @dependabot in #722
  • chore(deps-dev): Bump ts-jest from 29.1.1 to 29.1.2 by @dependabot in #721
  • chore(deps-dev): Bump @types/jest from 29.5.11 to 29.5.12 by @dependabot in #724
  • chore(deps-dev): Bump typedoc from 0.25.7 to 0.25.8 by @dependabot in #725
  • chore: update workflows from templates by @nextcloud-command in #712
  • feat: export aliases t and n for translate and translatePlural by @ShGKme in #727
  • chore(deps-dev): Bump rollup from 4.9.6...
Read more

v2.2.0

25 Jun 13:42
68711d8
Compare
Choose a tag to compare

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)

v2.1.0

20 Feb 07:53
9d59eef
Compare
Choose a tag to compare

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

v2.0.1

19 Jan 12:44
9bfc0b7
Compare
Choose a tag to compare

2.0.1 - 2023-01-19

Full Changelog

Fixed

Changed

  • Dependency updates

v2.0.0

12 Jan 08:45
be7ed24
Compare
Choose a tag to compare

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)

v2.0.0-beta.0

11 Jan 19:31
8cb279e
Compare
Choose a tag to compare
v2.0.0-beta.0 Pre-release
Pre-release

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)