Skip to content

Latest commit

 

History

History
108 lines (73 loc) · 3.39 KB

CHANGELOG.md

File metadata and controls

108 lines (73 loc) · 3.39 KB

Changelog

All notable changes to this project will be documented in this file. This project adheres to Semantic Versioning.

v4.5.1 - Dec 13, 2024

  • [Added] Add utc?: boolean as an optional parameter to I18n#localize. This makes dates be rendered using getUTC* functions instead.

v4.5.0 - Oct 15, 2024

  • [Removed] Remove I18n#availableLocales, as it's no used anywhere.
  • [Changed] I18n.t now replaces all instances of a placeholder in a translation.

v4.4.3 - Feb 15, 2024

  • [Changed] Revert exports change back, as it has caused way too much friction.

v4.4.2 - Feb 12, 2024

  • [Fixed] Add imports for react-native.

v4.4.1 - Feb 11, 2024

  • [Fixed] Reference full file path as the types import.

v4.4.0 - Feb 10, 2024

  • [Fixed] I18n#formatNumber now formats numbers with default options, conforming to the API described on the readme file.
  • [Fixed] Fix entrypoints, making them point the correct files.
  • [Fixed] Changed translations lookup to support keys containing dots (.) when using custom separators.
  • [Changed] Updated I18n#update and I18n#store to support translations that use custom separators and dots (.).

v4.3.2 - Sep 10, 2023

  • [Changed] Move esbuild dependency to development instead.

v4.3.1 - Sep 10, 2023

  • [Fix] Storing translations that contain numeric keys now work properly; previously it was creating arrays instead of objects.
  • [Changed] Stop using lodash's isArray in favor of Array.isArray.
  • [Fix] Lodash's snakeCase import.
  • [Fix] Bring back webpack so we can build browser distribution.
  • [Removed] Vendored lodash typings.
  • [Changed] Revert lodash vendoring.

v4.3.0 - Jul 7, 2023

  • [Changed] Vendor lodash, so it's easier to use i18n-js with importmaps.

v4.2.3 - Mar 5, 2023

  • [Added] Introduce useMakePlural(options) function as way of creating pluralizers on top of make-plural.
  • [Changed] Use make-plural's en function as the default pluralizer.
  • [Changed] Mark Scope type as read-only.

V4.2.2 - Dec 16, 2022

  • [Changed] Import lodash modules directly, which reduces final exported size by 36% (#41).

v4.2.1 - Dec 13, 2022

  • [Changed] The I18n#translate's return type is now a string and generics union.
  • [Fixed] Fix issue when pluralization missed a key required by the pluralizer raised an error rather thanr returning the missing translation message (#39)

v4.2.0 - Nov 24, 2022

  • [Changed] Interpolate strings when i18n.t(..args) returns an array.
  • [Fixed] Import cycle issue on src/helpers/formatNumber.ts.
  • [Added] I18n#formatNumber is now available as a I18n instance method.

v4.1.1 - Aug 25, 2022

  • [Changed] Removed @internal annotation from functions, so TypeScript can export types properly.
  • [Changed] Export additional types from main file.

v4.1.0 - Aug 22, 2022

  • [Added] I18n#onChange now returns a function that removes the handler from events.
  • [Added] I18n#interpolate is now available on the instance of I18n and can therefore be overridden.

Jul 29, 2022

  • Official release of i18n-js v4.0.0.