pangea-lib 1.16.9 → 1.16.11

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.
@@ -3,9 +3,5 @@ declare const _default: {
3
3
  cancelBtn: string;
4
4
  acceptBtn: string;
5
5
  };
6
- en: {
7
- cancelBtn: string;
8
- acceptBtn: string;
9
- };
10
6
  };
11
7
  export default _default;
@@ -0,0 +1,16 @@
1
+ import { Props } from './i18n.types';
2
+
3
+ export declare function createI18n(): <T extends "PgaDatePicker" | "PgaModal", K extends keyof {
4
+ PgaDatePicker: {
5
+ es: {
6
+ cancelBtn: string;
7
+ selectBtn: string;
8
+ };
9
+ };
10
+ PgaModal: {
11
+ es: {
12
+ cancelBtn: string;
13
+ acceptBtn: string;
14
+ };
15
+ };
16
+ }[T]["es"]>(fileName: T) => (messageKey: K, props?: Props) => string;
@@ -1,3 +1,14 @@
1
- import { FileName, MessageKey, Props } from './i18n.types';
2
-
3
- export declare function useI18n<T extends FileName, K extends MessageKey<T>>(fileName: T): (messageKey: K, props?: Props) => string;
1
+ export declare const useI18n: <T extends "PgaDatePicker" | "PgaModal", K extends keyof {
2
+ PgaDatePicker: {
3
+ es: {
4
+ cancelBtn: string;
5
+ selectBtn: string;
6
+ };
7
+ };
8
+ PgaModal: {
9
+ es: {
10
+ cancelBtn: string;
11
+ acceptBtn: string;
12
+ };
13
+ };
14
+ }[T]["es"]>(fileName: T) => (messageKey: K, props?: import('./i18n.types').Props) => string;
@@ -10,10 +10,6 @@ declare const _default: {
10
10
  cancelBtn: string;
11
11
  acceptBtn: string;
12
12
  };
13
- en: {
14
- cancelBtn: string;
15
- acceptBtn: string;
16
- };
17
13
  };
18
14
  };
19
15
  export default _default;
@@ -3,7 +3,7 @@ import { Language } from './i18n.types';
3
3
  type I18nStoreState = {
4
4
  currentLanguage: Language;
5
5
  };
6
- export declare const useI18nStore: import('pinia').StoreDefinition<"i18n", I18nStoreState, {}, {
6
+ export declare const useI18nStore: import('pinia').StoreDefinition<"pga-i18n", I18nStoreState, {}, {
7
7
  setLanguage(language: Language): void;
8
8
  }>;
9
9
  export {};
@@ -1,2 +1,2 @@
1
- export { useI18n } from './i18n';
1
+ export { createI18n } from './create-i18n';
2
2
  export { useI18nStore } from './i18n.store';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pangea-lib",
3
3
  "description": "",
4
- "version": "1.16.9",
4
+ "version": "1.16.11",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist",
@@ -50,6 +50,7 @@
50
50
  "click-outside-vue3": "^4.0.1",
51
51
  "moment": "^2.30.1",
52
52
  "pinia": "^2.1.7",
53
+ "pinia-plugin-persistedstate": "^3.2.1",
53
54
  "vue": "^3.4.21",
54
55
  "vue-chartjs": "^5.3.1"
55
56
  },