-
- Downloads
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.
Loading
Please register or sign in to comment