@dxos/react-ui 0.4.7-main.be31fed → 0.4.7-main.dca306f
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.
- package/dist/lib/browser/index.mjs +2 -0
- package/dist/lib/browser/index.mjs.map +3 -3
- package/dist/lib/browser/meta.json +1 -1
- package/dist/types/src/components/ThemeProvider/TranslationsProvider.d.ts +6 -1
- package/dist/types/src/components/ThemeProvider/TranslationsProvider.d.ts.map +1 -1
- package/dist/types/src/components/ThemeProvider/index.d.ts +1 -1
- package/dist/types/src/components/ThemeProvider/index.d.ts.map +1 -1
- package/package.json +7 -7
- package/src/components/ThemeProvider/TranslationsProvider.tsx +6 -1
- package/src/components/ThemeProvider/index.ts +1 -1
|
@@ -33,6 +33,7 @@ import { initReactI18next, useTranslation as useI18NextTranslation } from "react
|
|
|
33
33
|
var initialLng = "en-US";
|
|
34
34
|
var initialNs = "dxos-common";
|
|
35
35
|
var initialDtLocale = dtLocaleEnUs;
|
|
36
|
+
var toLocalizedString = (label, t) => Array.isArray(label) ? t(...label) : label;
|
|
36
37
|
var resources = {
|
|
37
38
|
[initialLng]: {
|
|
38
39
|
[initialNs]: {
|
|
@@ -2161,6 +2162,7 @@ export {
|
|
|
2161
2162
|
TreeItem,
|
|
2162
2163
|
getJdenticonHref,
|
|
2163
2164
|
hasIosKeyboard,
|
|
2165
|
+
toLocalizedString,
|
|
2164
2166
|
useAvatarContext,
|
|
2165
2167
|
useButtonGroupContext,
|
|
2166
2168
|
useDensityContext,
|