Skip to content
Snippets Groups Projects
Verified Commit 9c7d4c1b authored by Volker Schukai's avatar Volker Schukai :alien:
Browse files

feat: Improve formatting and clarity in translation handling

Summary of changes
- Updated comment formatting in `formatter.mjs` for consistency.
- Reformatted imports in `translations.mjs` for better readability.
- Enhanced constructor logic in `Translations` class to handle locale input more flexibly.

- `formatter.mjs`:
  - Corrected a minor typo in JSDoc comments to improve clarity—changed "value is not a object" to "value is not an object".

- `translations.mjs`:
  - Reformatted import statements for consistency, aligning them neatly, which makes it easier to read and manage.
  - Simplified locale handling logic in `Translations` constructor by adding a fallback option that retrieves translations if the provided locale is not an instance of Locale or a string.
parent a3df3ca0
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment