@vlian/framework 1.2.56 → 1.2.57

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,5 +1,5 @@
1
1
  /*!
2
- * @vlian/framework v1.2.55
2
+ * @vlian/framework v1.2.56
3
3
  * Secra Framework - 一个现代化的低代码框架
4
4
  * (c) 2026 Secra Framework Contributors
5
5
  * Licensed under Apache-2.0
package/dist/index.umd.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @vlian/framework v1.2.55
2
+ * @vlian/framework v1.2.56
3
3
  * Secra Framework - 一个现代化的低代码框架
4
4
  * (c) 2026 Secra Framework Contributors
5
5
  * Licensed under Apache-2.0
@@ -12737,7 +12737,10 @@
12737
12737
  return;
12738
12738
  }
12739
12739
  try {
12740
- await cacheManager.set(persistenceContext.key, cloneI18nSnapshot(snapshot));
12740
+ const persistedSnapshot = {
12741
+ locale: cloneI18nSnapshot(snapshot).locale
12742
+ };
12743
+ await cacheManager.set(persistenceContext.key, persistedSnapshot);
12741
12744
  } catch {
12742
12745
  // Ignore persistence failures and keep i18n updates in memory.
12743
12746
  }
@@ -12997,7 +13000,7 @@
12997
13000
  ...DEFAULT_I18N,
12998
13001
  ...loadedI18nInitial,
12999
13002
  ...options.config?.i18n?.initial || {},
13000
- resources: isRecord(optionLocale) ? optionLocale : loadedI18nInitial.resources
13003
+ resources: isRecord(optionLocale) ? optionLocale : loadedI18nInitial.resources ?? options.config?.i18n?.initial?.resources
13001
13004
  }
13002
13005
  }
13003
13006
  };