@wandelbots/wandelbots-js-react-components 2.16.0 → 2.16.1
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/Setup.d.ts +1 -1
- package/dist/Setup.d.ts.map +1 -1
- package/dist/externalizeComponent.d.ts.map +1 -1
- package/dist/i18n/config.d.ts +3 -3
- package/dist/i18n/config.d.ts.map +1 -1
- package/dist/index.cjs +26 -26
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/Setup.tsx +2 -2
- package/src/externalizeComponent.tsx +1 -2
- package/src/i18n/config.ts +3 -3
- package/src/index.ts +1 -0
package/package.json
CHANGED
package/src/Setup.tsx
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { OrbitControls } from "@react-three/drei"
|
|
2
|
+
import { Canvas, type Props as CanvasProps } from "@react-three/fiber"
|
|
1
3
|
import * as React from "react"
|
|
2
4
|
import { Vector3 } from "three"
|
|
3
|
-
import { Canvas, type Props as CanvasProps } from "@react-three/fiber"
|
|
4
|
-
import { OrbitControls } from "@react-three/drei"
|
|
5
5
|
import { PresetEnvironment } from "./components/3d-viewport/PresetEnvironment"
|
|
6
6
|
|
|
7
7
|
type Props = React.PropsWithChildren<
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { type FC } from "react"
|
|
2
2
|
import { I18nextProvider } from "react-i18next"
|
|
3
|
-
|
|
4
|
-
import i18n from "./i18n/config"
|
|
3
|
+
import { i18n } from "./i18n/config"
|
|
5
4
|
|
|
6
5
|
/**
|
|
7
6
|
* Our components require a certain context that may or may not
|
package/src/i18n/config.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type { i18n } from "i18next"
|
|
1
|
+
import type { i18n as I18NInstance } from "i18next"
|
|
2
2
|
import i18next from "i18next"
|
|
3
3
|
import LanguageDetector from "i18next-browser-languagedetector"
|
|
4
4
|
import deJSON from "./locales/de/translations.json"
|
|
5
5
|
import enJSON from "./locales/en/translations.json"
|
|
6
6
|
|
|
7
|
-
const i18n:
|
|
7
|
+
const i18n: I18NInstance = i18next.createInstance()
|
|
8
8
|
|
|
9
9
|
i18n.use(LanguageDetector).init({
|
|
10
10
|
supportedLngs: ["en", "de"],
|
|
@@ -23,4 +23,4 @@ i18n.use(LanguageDetector).init({
|
|
|
23
23
|
},
|
|
24
24
|
})
|
|
25
25
|
|
|
26
|
-
export
|
|
26
|
+
export { i18n }
|
package/src/index.ts
CHANGED
|
@@ -18,5 +18,6 @@ export * from "./components/SelectableFab"
|
|
|
18
18
|
export * from "./components/utils/hooks"
|
|
19
19
|
export * from "./components/VelocitySlider"
|
|
20
20
|
export * from "./components/wandelscript-editor/WandelscriptEditor"
|
|
21
|
+
export * from "./i18n/config"
|
|
21
22
|
export * from "./themes/themeTypes"
|
|
22
23
|
export { createNovaMuiTheme } from "./themes/theming"
|