- Added support for SSR environments #25
- Fixed a bug that caused underscores in locale identifiers to throw a
RangeError
- Upgraded TypeScript to 5.1.3
- Added
exists()
method to determine if a term and/or a fallback term exists #17
- Ensure return values of translation functions are always a string
- Fixed a bug where regional locales stopped working
- Fixed a parsing bug in extended language codes #16
- Updated TypeScript to 4.8.4
- Fixed module paths in
package.json
- 🚨BREAKING: Removed top level
term()
,date()
,number()
, andrelativeTime()
functions - Refactored
LocalizeController.term()
to allow strong typings by extending the controller and default translation (see "Typed Translations and Arguments" in the readme for details)
- Fixed a bug that prevented updates from happening when
<html dir>
changed
- Added
dir()
method to return the target element's directionality - Added
lang()
method to return the target element's language
- Renamed
updateLocalizedTerms()
toupdate()
(forgive me SemVer, but nobody was using this I promise)
- Removed all dependencies
- Change import to ensure only types get used
- Added relative time method to
- Reworked the library to use the ReactiveController interface