@joplo-app/kit 0.2.16 → 0.2.17

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +10 -0
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -36,7 +36,16 @@ export type VoiceConfig = {
36
36
  profile?: string;
37
37
  narrator?: string;
38
38
  roles?: Record<string, string>;
39
+ /** 按内容语言覆盖旁白与角色的音色(D84),例如 { ja: { narrator: 'Sarah' } };不写时自动选同语言的预设音色。 */
40
+ locales?: Record<string, {
41
+ narrator?: string;
42
+ roles?: Record<string, string>;
43
+ }>;
39
44
  };
45
+ /**
46
+ * locales(D84):内容语言,第一个是源文件的语言(默认语言),其余的译文在 locales/<语言>.json(原文 → 译文)。
47
+ * 可选:en、zh-CN、zh-TW、ja、ko、es、fr、de、pt-BR、ru。加一种语言:npx joplo i18n add <语言>。
48
+ */
40
49
  export type ConfigDef = {
41
50
  kind: 'config';
42
51
  name: string;
@@ -46,6 +55,7 @@ export type ConfigDef = {
46
55
  home?: string;
47
56
  autoFocus?: boolean;
48
57
  voice?: VoiceConfig;
58
+ locales?: string[];
49
59
  source?: string;
50
60
  };
51
61
  export declare const config: (c: Omit<ConfigDef, "kind" | "source">) => ConfigDef;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@joplo-app/kit",
3
- "version": "0.2.16",
3
+ "version": "0.2.17",
4
4
  "description": "Joplo 创作 SDK:组件、feature/option/flow 与 JSX 运行时(收集成数据,不作为 React 执行)",
5
5
  "license": "PolyForm-Shield-1.0.0",
6
6
  "type": "module",