cc-translate 0.5.21 → 0.5.31

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/lib/support.js CHANGED
@@ -99,8 +99,8 @@ export const SUPPORT_LANGUAGE_MAP = {
99
99
  code: "ur-PK",
100
100
  name: "乌尔都语",
101
101
  },
102
- ["th-Th"]: {
103
- code: "th-Th",
102
+ ["th-TH"]: {
103
+ code: "th-TH",
104
104
  name: "泰国语",
105
105
  },
106
106
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cc-translate",
3
- "version": "0.5.21",
3
+ "version": "0.5.31",
4
4
  "description": "A language translation tool based on OpenAI",
5
5
  "author": "maybe",
6
6
  "packageManager": "yarn@1.22.22",
@@ -101,8 +101,8 @@ export const SUPPORT_LANGUAGE_MAP: SupportLanguageMap = {
101
101
  code: "ur-PK",
102
102
  name: "乌尔都语",
103
103
  },
104
- ["th-Th"]: {
105
- code: "th-Th",
104
+ ["th-TH"]: {
105
+ code: "th-TH",
106
106
  name: "泰国语",
107
107
  },
108
108
  };
@@ -34,7 +34,7 @@ export type SupportLanguageType =
34
34
  | "vi"
35
35
  | "uk"
36
36
  | "ur-PK"
37
- | "th-Th";
37
+ | "th-TH";
38
38
 
39
39
  export type SupportLanguageMap = Partial<
40
40
  Record<SupportLanguageType, ILanguage>
package/types/index.d.ts CHANGED
@@ -6,7 +6,7 @@ export interface ILanguage {
6
6
  /**语言名称 */
7
7
  name: string;
8
8
  }
9
- export type SupportLanguageType = "en" | "zh-CN" | "zh-TW" | "ja" | "ar" | "bn" | "de" | "es-ES" | "fr" | "hi" | "id" | "it" | "ko" | "ms" | "my" | "ne-NP" | "nl" | "pl" | "pt-PT" | "ru" | "tl" | "tr" | "vi" | "uk" | "ur-PK" | "th-Th";
9
+ export type SupportLanguageType = "en" | "zh-CN" | "zh-TW" | "ja" | "ar" | "bn" | "de" | "es-ES" | "fr" | "hi" | "id" | "it" | "ko" | "ms" | "my" | "ne-NP" | "nl" | "pl" | "pt-PT" | "ru" | "tl" | "tr" | "vi" | "uk" | "ur-PK" | "th-TH";
10
10
  export type SupportLanguageMap = Partial<Record<SupportLanguageType, ILanguage>>;
11
11
  export interface ILogError {
12
12
  error: Error;