@yamada-ui/react 2.2.7-dev-20260817094722 → 2.2.7-dev-20260819081352

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.
@@ -11,7 +11,6 @@ interface Language {
11
11
  locale: string;
12
12
  }
13
13
  declare const LOCALES: readonly Locale[];
14
- declare function getLanguage(locale?: string, dir?: TextDirection): Language;
15
14
  type IntlData = DefaultIntlData;
16
15
  type IntlKey = keyof IntlData;
17
16
  type IntlPath = Path<IntlData>;
@@ -142,6 +141,10 @@ interface I18nProviderProps {
142
141
  * If not provided, the direction will be determined by the locale.
143
142
  */
144
143
  dir?: TextDirection;
144
+ /**
145
+ * The fallback locale to use if no matching locale is available.
146
+ */
147
+ fallbackLocale?: AnyString | Locale;
145
148
  /**
146
149
  * The formats to pass to the `intlMessageFormat` instance.
147
150
  */
@@ -167,5 +170,5 @@ declare const I18nProvider: FC<I18nProviderProps>;
167
170
  declare function useI18n(): I18nContext;
168
171
  declare function useI18n<Y extends IntlKey>(key: Y): I18nContext<IntlData[Y], Path<IntlData[Y]>>;
169
172
  //#endregion
170
- export { I18nContext, I18nProvider, I18nProviderProps, LOCALES, Language, Locale, getLanguage, useI18n };
173
+ export { I18nContext, I18nProvider, I18nProviderProps, LOCALES, Language, Locale, useI18n };
171
174
  //# sourceMappingURL=i18n-provider.d.ts.map
@@ -1,3 +1,3 @@
1
1
  import { i18nCache } from "./i18n-cache.js";
2
- import { I18nContext, I18nProvider, I18nProviderProps, LOCALES, Language, Locale, getLanguage, useI18n } from "./i18n-provider.js";
3
- export { I18nContext, I18nProvider, I18nProviderProps, LOCALES, Language, Locale, getLanguage, i18nCache, useI18n };
2
+ import { I18nContext, I18nProvider, I18nProviderProps, LOCALES, Language, Locale, useI18n } from "./i18n-provider.js";
3
+ export { I18nContext, I18nProvider, I18nProviderProps, LOCALES, Language, Locale, i18nCache, useI18n };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@yamada-ui/react",
3
3
  "type": "module",
4
- "version": "2.2.7-dev-20260817094722",
4
+ "version": "2.2.7-dev-20260819081352",
5
5
  "description": "React UI components of the Yamada, by the Yamada, for the Yamada built with React and Emotion",
6
6
  "keywords": [
7
7
  "yamada",