microboard-temp 0.1.21 → 0.1.23

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.
@@ -0,0 +1,11 @@
1
+ import i18n from "i18next";
2
+ export declare const defaultNS = "default";
3
+ export declare const resources: {
4
+ en: {
5
+ default: {};
6
+ };
7
+ ru: {
8
+ default: {};
9
+ };
10
+ };
11
+ export declare function initDefaultI18N(): typeof i18n;
@@ -1,11 +1,6 @@
1
- import i18n from "i18next";
2
- export declare const defaultNS = "default";
3
- export declare const resources: {
4
- en: {
5
- default: {};
6
- };
7
- ru: {
8
- default: {};
9
- };
10
- };
11
- export declare function initI18N(isNode?: boolean): typeof i18n;
1
+ import type { i18n as I18nType } from "i18next";
2
+ /**
3
+ * Registers a pre-configured i18next instance on the global Settings.
4
+ * @param i18nInstance - An initialized i18next instance, already configured with plugins and options.
5
+ */
6
+ export declare function initI18N(i18nInstance: I18nType): I18nType;
@@ -22,3 +22,4 @@ export * from "./itemFactories";
22
22
  export * from "./parserHTML";
23
23
  export * from "./sha256";
24
24
  export * from "./lib";
25
+ export { initI18N } from "api/initI18N";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "microboard-temp",
3
- "version": "0.1.21",
3
+ "version": "0.1.23",
4
4
  "description": "A flexible interactive whiteboard library",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -1,2 +0,0 @@
1
- import i18n from "i18next";
2
- export declare function initI18NReact(isNode?: boolean): typeof i18n;