@rimori/client 2.5.28-next.0 → 2.5.28-next.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.
@@ -1,4 +1,4 @@
1
- import { ThirdPartyModule, TOptions } from 'i18next';
1
+ import { ThirdPartyModule, i18n as i18nType } from 'i18next';
2
2
  import { AIModule } from '../plugin/module/AIModule';
3
3
  /**
4
4
  * Translator class for handling internationalization
@@ -32,7 +32,7 @@ export declare class Translator {
32
32
  * @param options - Translation options
33
33
  * @returns Translated string
34
34
  */
35
- t(key: string, options?: TOptions): string;
35
+ t(...args: Parameters<i18nType['t']>): string;
36
36
  /**
37
37
  * Get current language
38
38
  */
@@ -48,7 +48,7 @@ export class Translator {
48
48
  },
49
49
  },
50
50
  debug: false,
51
- // showSupportNotice: false, // TODO enable with next version of i18next
51
+ showSupportNotice: false,
52
52
  parseMissingKeyHandler: (key, defaultValue) => {
53
53
  if (!key.trim())
54
54
  return '';
@@ -130,11 +130,11 @@ export class Translator {
130
130
  * @param options - Translation options
131
131
  * @returns Translated string
132
132
  */
133
- t(key, options) {
133
+ t(...args) {
134
134
  if (!this.i18n) {
135
135
  throw new Error('Translator is not initialized');
136
136
  }
137
- return this.i18n.t(key, options);
137
+ return this.i18n.t(...args);
138
138
  }
139
139
  /**
140
140
  * Get current language
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rimori/client",
3
- "version": "2.5.28-next.0",
3
+ "version": "2.5.28-next.1",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "repository": {
@@ -36,9 +36,9 @@
36
36
  "format": "prettier --write ."
37
37
  },
38
38
  "dependencies": {
39
- "@supabase/postgrest-js": "^2.98.0",
39
+ "@supabase/postgrest-js": "^2.100.1",
40
40
  "dotenv": "^16.5.0",
41
- "i18next": "^25.8.15"
41
+ "i18next": "^25.10.10"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@eslint/js": "^9.37.0",