@rimori/client 2.5.27 → 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.
|
@@ -43,9 +43,6 @@ if (!releaseChannel) {
|
|
|
43
43
|
console.error('Usage: rimori-release <release_channel>');
|
|
44
44
|
process.exit(1);
|
|
45
45
|
}
|
|
46
|
-
if (process.env.RIMORI_BACKEND_URL) {
|
|
47
|
-
console.info('Using backend url:', process.env.RIMORI_BACKEND_URL);
|
|
48
|
-
}
|
|
49
46
|
const config = {
|
|
50
47
|
version,
|
|
51
48
|
release_channel: releaseChannel,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ThirdPartyModule,
|
|
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(
|
|
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
|
-
|
|
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(
|
|
133
|
+
t(...args) {
|
|
134
134
|
if (!this.i18n) {
|
|
135
135
|
throw new Error('Translator is not initialized');
|
|
136
136
|
}
|
|
137
|
-
return this.i18n.t(
|
|
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.
|
|
3
|
+
"version": "2.5.28-next.1",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"repository": {
|
|
@@ -31,14 +31,14 @@
|
|
|
31
31
|
},
|
|
32
32
|
"scripts": {
|
|
33
33
|
"build": "tsc",
|
|
34
|
-
"dev": "
|
|
34
|
+
"dev": "tsc -w --preserveWatchOutput",
|
|
35
35
|
"lint": "eslint . --fix",
|
|
36
36
|
"format": "prettier --write ."
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@supabase/postgrest-js": "^2.
|
|
39
|
+
"@supabase/postgrest-js": "^2.100.1",
|
|
40
40
|
"dotenv": "^16.5.0",
|
|
41
|
-
"i18next": "^25.
|
|
41
|
+
"i18next": "^25.10.10"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@eslint/js": "^9.37.0",
|