Skip to content

Commit

Permalink
Restyle I18n update (#863)
Browse files Browse the repository at this point in the history
* style: format code with clang-format

* style: format code with prettier
  • Loading branch information
restyled-io[bot] authored Jun 16, 2024
1 parent 34bc16e commit b220820
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions imports/helpers/i18n.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,12 @@ export class I18nHelper {
if (Meteor.settings?.public && Meteor.settings.public.isEnd2EndTest) {
return "en-US";
}
return (((await Meteor.userAsync()) &&
(await Meteor.userAsync()).profile && (await Meteor.userAsync()).profile.locale) || I18nHelper._getPreferredBrowserLocale());
return (
((await Meteor.userAsync()) &&
(await Meteor.userAsync()).profile &&
(await Meteor.userAsync()).profile.locale) ||
I18nHelper._getPreferredBrowserLocale()
);
}

/**
Expand Down

0 comments on commit b220820

Please sign in to comment.