All notable changes to this project will be documented in this file.
isRTL
was added to check whether a given, or the current, language is read right-to-left #639 (susnux)
- Add typings to the package exports to fix build for Typescript projects using
node16
ornodenext
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)
- Update node engines to next LTS (Node 20 + NPM 9)
- Dependency updates
- 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)
- Added tests and increased code coverage
- Dependency updates
- fix(config): fix npmignore config #563 (skjnldsv)
- fix(config): fix tsconfig out dir typings #562 (skjnldsv)
- Fix standalone registration #556 (ShGKme)
- Dependency updates
From 2.0.0, this package is standalone and do not rely on window OC variables to function.
- Provide all translation related functions #542 (susnux)
- Fix building and deploying documentation #546 (susnux)
- Dependency updates
- Remove dependency on OC for
getLocale
andgetLanguage
Superseeded by v1.6.0 as the release was empty.
- Dependency updates
- Language detection of languages that have a
_
in their code (#172)
- Nextcloud 20 support
- Dependency updates
- getCanonicalLocale
- Dependency updates
- Dependency updates
- Source locale of translations is now set to 'en', so fewer warnings are printed
- Update vulnerable packages
- Dependency updates
- Update vulnerable packages
- Optional debug mode with logging, no console.warn for production builds
- Dependency updates
- Dependency updates
- Update vulnerable packages
- Gettext-based translation helpers for Nextcloud-independent translations (mostly for libraries)
- Updated documentation
- Updated dependencies
- Translate
escape
option typo
- Updated documentation