sanity 5.26.0 → 5.26.1-next.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- var version = "5.26.0";
1
+ var version = "5.26.1-next.2";
2
2
  let buildVersion;
3
3
  try {
4
4
  buildVersion = process.env.PKG_BUILD_VERSION;
@@ -7,7 +7,7 @@ try {
7
7
  try {
8
8
  buildVersion = buildVersion || // This is replaced by `@sanity/pkg-utils` at build time
9
9
  // and must always be references by its full static name, e.g. no optional chaining, no `if (process && process.env)` etc.
10
- "5.26.0";
10
+ "5.26.1-next.2";
11
11
  } catch {
12
12
  }
13
13
  const SANITY_VERSION = buildVersion || `${version}-dev`;
package/lib/index.js CHANGED
@@ -7353,9 +7353,7 @@ function resolveConditionalProperty(property, context) {
7353
7353
  }
7354
7354
  const shouldEscape = typeof window > "u" || typeof document > "u", fallbackLocales = [defaultLocale], getFallbackLocaleSource = memoize$1(function() {
7355
7355
  const i18n = getFallbackI18nInstance();
7356
- return i18n.init({
7357
- showSupportNotice: !1
7358
- }), {
7356
+ return i18n.init(), {
7359
7357
  currentLocale: defaultLocale,
7360
7358
  locales: fallbackLocales,
7361
7359
  loadNamespaces: i18n.loadNamespaces,
@@ -7371,8 +7369,7 @@ function getFallbackI18nInstance() {
7371
7369
  return createInstance({
7372
7370
  ns: Array.from(namespaces),
7373
7371
  defaultNS: studioLocaleNamespace,
7374
- initImmediate: !0,
7375
- showSupportNotice: !1,
7372
+ initAsync: !0,
7376
7373
  partialBundledLanguages: !0,
7377
7374
  fallbackLng: defaultLocale.id,
7378
7375
  lng: defaultLocale.id,
@@ -63879,10 +63876,6 @@ const defaultOptions = {
63879
63876
  // in a single place with a single approach. This means we shouldn't need to wait for the init,
63880
63877
  // as any missing translations will be loaded async (through react suspense).
63881
63878
  initAsync: !0,
63882
- // Suppress ads in console
63883
- // for context see https://github.com/i18next/i18next/issues/2390
63884
- // Open source funding is tricky, but this is NOT the way
63885
- showSupportNotice: !1,
63886
63879
  // Because we use i18next-react, we do not need to escale values
63887
63880
  interpolation: {
63888
63881
  escapeValue: !1