diff --git a/source/server.ts b/source/server.ts index 8b19f0d..4e7ac70 100644 --- a/source/server.ts +++ b/source/server.ts @@ -1,5 +1,4 @@ import type { NextHandleFunction } from 'connect'; -import Fibers from 'fibers'; import { dump, FAILSAFE_SCHEMA } from 'js-yaml'; import { Match, check } from 'meteor/check'; import { DDP } from 'meteor/ddp'; @@ -15,8 +14,7 @@ import { JSONObject, set } from './utils'; i18n.setOptions({ hostUrl: Meteor.absoluteUrl() }); const _get = i18n._contextualLocale.get.bind(i18n._contextualLocale); -i18n._contextualLocale.get = () => - Fibers.current ? _get() ?? i18n._getConnectionLocale() : undefined; +i18n._contextualLocale.get = () => _get() ?? i18n._getConnectionLocale(); function getDiff(locale: string, diffWith?: string) { const diff: JSONObject = {};