-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add data, fallbackLang & lang options as constructor arguments (#…
…40) * feat: add data, defaultLang & lang options as constructor arguments * refactor: rename defaultLang to fallbackLang * refactor: throw an error in case of languages absence * refactor: rework i18n method * refactor: change ErrorCode naming * fix: use object properties instead strings in mapErrorCodeToMessage switch cases * fix: review fixes * refactor: mark code property in mapErrorCodeToMessage as required * fix: do not throw an error in case of NoLanguageData * fix: remove fallbackLamg from getTranslationData method * fix: remove none actual test * fix: i18n method fixes
- Loading branch information
Showing
5 changed files
with
337 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.