Skip to content

The open-source full-stack studio for Opus 5.5 motion video. Reverse engineering for any video. Code video with HTML: recreate, edit and render. BYOA + BYOK · Motion.md · Images, Video, Music & Voice.

feat(templates): localize the editor catalog and template prompts

lefarcen5edfc77fee20
diff --git a/docs/product/architecture.md b/docs/product/architecture.md
index 1dc8a08d..65597f6f 100644
--- a/docs/product/architecture.md
+++ b/docs/product/architecture.md
@@ -20,7 +20,7 @@ Model Gateway remains a shared media-generation backend for MCP, using local Cod
- The project sidebar opens as a modal drawer over the editor at every viewport size. It starts closed, leaves the editor dimensions unchanged, and closes via its button, outside click or Escape. The header toggle remains mounted for focus restoration; privacy, theme and language settings live in the drawer footer. Error and empty-session views retain a drawer toggle so users can select an existing project or create one. Project rows show names without dates; the heading offers a New project button instead of a count. Creation uses the existing save and revision guards before opening the blank project.
- Preview zoom percentage and Fit sit in the MVP preview header, outside the picture; fullscreen retains the in-view controls.
- The composition list marks the live preview target, including the full video. The MVP omits the duplicate preview breadcrumb; composition switching and existing return shortcuts remain available.
-- The editor header keeps the OpenDesign logo, drawer toggle and template library on the left, centers the editable project name, and places undo/redo and export on the right. Transient save/error status remains available. The template library reuses the website catalog layout: brand/use-case/video-type facets, configured featured templates, search and sorting, without site navigation, promotional hero or footer. Prism metadata and local cache updates drive the list. Previews, author/source links and editable-project opening remain available. The detail view keeps the motion.md download action (`motionDocumentUrl`) above its guide content (`styleDescription`, `reviewFocus`, `motionGuideUrl`). Recreate opens a separate prompt dialog; copied instructions never occupy the guide area.
+- The editor header keeps the OpenDesign logo, drawer toggle and template library on the left, centers the editable project name, and places undo/redo and export on the right. Transient save/error status remains available. The template library reuses the website catalog layout: brand/use-case/video-type facets, configured featured templates, search and sorting, without site navigation, promotional hero or footer. Prism metadata and local cache updates drive the list. The catalog selects the editor locale from a shared multilingual publication, falling back to English and then the Resource default; template-copy prompts support the same eleven UI languages. Previews, author/source links and editable-project opening remain available. The detail view keeps the motion.md download action (`motionDocumentUrl`) above its guide content (`styleDescription`, `reviewFocus`, `motionGuideUrl`). Recreate opens a separate prompt dialog; copied instructions never occupy the guide area.
- The asset panel shows only the current project, with compact search/import controls, type filters, and a dedicated scrollable list. Usage filtering is omitted; used assets still sort first within each type. The global cache view remains in source but has no editor entry in the MVP.
- Panel positions are fixed. Divider resizing and per-project size persistence remain; panel movement, closing and layout presets are absent. Preview alone can temporarily expand within the editor workspace, keeping the host chat visible and the player mounted. Its header button or Escape restores the previous layout and playback position; expansion is not persisted across reloads.
- MVP controls share a locally bundled Remix Icon 4.9.1 set with the reference design system. Side-panel tabs remain text-only; brand artwork and timeline geometry are separate from control icons.
@@ -171,7 +171,7 @@ Preview/export preflight and the bundled OpenMotion lint command use the pinned
| 编辑器与工作区交互 | `studio/src/`,尤其 `studio/src/motion/` | 完整 Hyperframes 0.9.7 Studio 前端源码;宿主通过插槽适配品牌和入口,预览使用独立 iframe |
| 面板与布局恢复 | `studio/src/components/dock/`、`MotionLayoutControls.tsx` | MVP allows preview, timeline, compositions, assets, catalog, design, layers, renders and version history. Fixed positions, resizable dividers, separate per-project `motion.mvp.dock.v1` preferences. Newly enabled fixed panels are added to saved layouts without resetting divider sizes. |
| 撤销、版本保留与恢复 | `MotionHistoryPanel.tsx`、原生历史 API | Header undo/redo remains. The right-side Version history tab shows native entries, changed files, pinning and restoration; restores checkpoint pending edits and preserve later records. Timeline history buttons remain hidden. |
-| Editor interface language | `studio/src/i18n/`、`web/i18n.ts` | Eleven languages, Chinese by default; editor and embedded dialog labels update without remounting. Authored content, copied Agent instructions and long guides retain their source language; native-speaker review remains separate. |
+| Editor interface language | `studio/src/i18n/`、`web/i18n.ts` | Eleven languages, Chinese by default; editor and embedded dialog labels update without remounting. Authored project content and existing instructions retain their source language; newly generated template-copy prompts use the current UI locale, and guide/download URLs come from that locale’s catalog; native-speaker review remains separate. |
| 多 Agent 薄适配器 | `scripts/export-adapters.ts`、`shared/integration.ts` | Codex、Claude、DSH、WorkBuddy Connector 共用外置运行时;本机生成,WorkBuddy 桌面待验收,详见 [适配器](../agent-adapters.md) |
| MCP 接入与指引 | `mcp.ts`、`mcp-tools.ts`、`shared/integration.ts`、`web/connect.*` | 本机 stdio;macOS 业务由共享后台执行,ChatGPT 云端远程 MCP 尚未提供 |
| Codex 安装 | `install.sh`、`scripts/install-motion.command` | 远端源码下载、依赖安装与编辑器构建、本地插件注册和 MCP 握手;需预装 Git、Node/npm 与支持插件的 Codex CLI,保留安装目录,遇到已有目录停止;远端一行入口待发布到 main |
diff --git a/docs/template-catalog.md b/docs/template-catalog.md
index 5715e122..3cc7074d 100644
--- a/docs/template-catalog.md
+++ b/docs/template-catalog.md
@@ -28,7 +28,7 @@ DEV 的默认工作区另加 `-dev`,与线上后台进程、工程和缓存分
### 缓存
- 可用 `MOTION_TEMPLATE_RESOURCE_ID`、`MOTION_TEMPLATE_LOCALE` 指定 Resource 和语言。缓存位于当前 Motion 数据目录的 `template-cache`,按来源和语言隔离,不能手工修改。
-- 按需用 ETag / If-None-Match 检查发布,304 复用已下载内容;DEV 最短间隔 2 秒,prod 60 秒。当前目录约 120 KB,直接缓存 main.json,不另加 manifest 下载链。
+- 按需用 ETag / If-None-Match 检查发布,304 复用已下载内容;DEV 最短间隔 2 秒,prod 60 秒。The full multilingual main.json is cached once; UI language changes reuse that publication rather than downloading one catalog per locale.
- 发布成功的目录整体替换;网络或内容读取失败时保留上次有效缓存并返回 warning。首次读取无缓存时明确失败。
- Template files download with at most four concurrent requests. Verified bytes are cached locally and rechecked against the manifest before reuse; each project gets independent files. A corrupt cache entry is downloaded again. Failed copies wait for pending writes before removing the incomplete project.
- 打开的模板界面每 5 秒检查目录版本,变化后更新列表,保留搜索条件,不重启编辑器或改写已有工程。保存 CMS 草稿不触发变化,需发布 DEV。
@@ -43,7 +43,15 @@ DEV 的默认工作区另加 `-dev`,与线上后台进程、工程和缓存分
### 界面
-`GET /motion-api/template-catalog` 保留现有 query/category/offset/limit/grouped/covered 查询,用于界面搜索和分页,返回 catalogVersion。它和 MCP 索引从同一缓存生成。`kind=prism` 与 builtin 一样可打开独立编辑工程;复制指令仍沿用统一 templatePrompt 和参数化指引。后续公共落地页可读取相同发布数据,但公共安装链接与页面未在本次实现。
+`GET /motion-api/template-catalog` accepts an optional `locale` alongside query/category/offset/limit/grouped/covered,用于界面搜索和分页,返回 catalogVersion。它和 MCP 索引从同一缓存生成。`kind=prism` 与 builtin 一样可打开独立编辑工程;复制指令仍沿用统一 templatePrompt 和参数化指引。后续公共落地页可读取相同发布数据,但公共安装链接与页面未在本次实现。
+
+### Template languages and motion.md
+
+The website and editor support `en`, `zh`/`zh-CN`, `ja`, `ko`, `de`, `fr`, `ru`, `es`, `pt-br`/`pt-BR`, `it`, and `tr`. Prism keeps one shared Schema and a `templates` collection in each native locale slot. The editor requests its UI locale; missing locale content falls back to English, then the Resource default. The MCP index/detail defaults remain controlled by `MOTION_TEMPLATE_LOCALE`.
+
+Keep template IDs, project file manifests, ordering, provenance and media URLs identical across locales. Translate display names, summaries, use cases, video types and guide text. Template prompt text uses the selected UI language and the configured DEV/prod installation URL. Changing language does not translate the video or modify an existing project.
+
+Each locale can use its existing `motionDocumentUrl` and `motionGuideUrl` fields for a localized download or HTML guide. A motion.md download keeps the filename `motion.md` and the original ZIP bytes. Translate explanatory Markdown/HTML inside the archive; reuse executable examples and media unless a localized video is explicitly supplied. Never treat a translated catalog title as proof of a translated package. Missing package URLs keep download disabled; shared original-language packages need accurate language disclosure from the content publisher before publication. No package translation or new archive format is introduced here.
## 历史:随包参考快照
diff --git a/prism-templates.ts b/prism-templates.ts
index 823ca87d..d507fb7d 100644
--- a/prism-templates.ts
+++ b/prism-templates.ts
@@ -2,6 +2,7 @@ import { createHash, randomUUID } from 'node:crypto';
import { mkdir, readFile, rename, writeFile } from 'node:fs/promises';
import path from 'node:path';
import { templatePage, type GalleryTemplate } from './shared/catalog.ts';
+import { catalogLocale } from './shared/template-locale.ts';
import { templateConfig } from './shared/template-config.ts';
import { libraryTemplates, templateRecipe } from './template-catalog.ts';
import { copyTemplate } from './template-library.ts';
@@ -57,13 +58,14 @@ export class TemplateCatalog {
this.request = options.fetch ?? fetch;
}
- private entries(publication: Publication): PrismTemplate[] {
+ private entries(publication: Publication, requested = this.locale): PrismTemplate[] {
if (publication.resourceId !== this.resourceId || publication.environment !== this.environment || publication.channel !== 'default' || !publication.publicationId) {
throw new Error('模板目录的发布身份不匹配');
}
- const entries = publication.content?.[this.locale]?.templates;
+ const locale = catalogLocale(Object.keys(publication.content ?? {}), requested, publication.defaultLocale);
+ const entries = publication.content?.[locale]?.templates;
if (!Array.isArray(entries) || entries.some(item => !item.templateId || !item.original?.templateName || !Array.isArray(item.files))) {
- throw new Error(`模板目录缺少 ${this.locale} 模板数据`);
+ throw new Error(`模板目录缺少 ${locale} 模板数据`);
}
return entries;
}
@@ -109,8 +111,8 @@ export class TemplateCatalog {
return this.snapshot!;
}
- private templates(snapshot: Snapshot): EditableTemplate[] {
- const remote: EditableTemplate[] = [...this.entries(snapshot.publication)].sort((a, b) => a.sortOrder - b.sortOrder).map(item => ({
+ private templates(snapshot: Snapshot, requested = this.locale): EditableTemplate[] {
+ const remote: EditableTemplate[] = [...this.entries(snapshot.publication, requested)].sort((a, b) => a.sortOrder - b.sortOrder).map(item => ({
id: item.templateId, title: item.original.templateName, subtitle: item.original.category || 'Motion',
description: item.original.summary || '', kind: 'prism' as const, collection: 'example' as const,
tags: [item.original.promotionalUseCases, item.original.visualPresentation, item.original.motionTags].filter(Boolean).flatMap(value => value.split(/[,,·]/).map(tag => tag.trim()).filter(Boolean)),
@@ -140,9 +142,9 @@ export class TemplateCatalog {
return { indexPath, total: items.length, catalogVersion: snapshot.publication.publicationId, warning: this.warning };
}
- async page(options: Parameters<typeof templatePage>[1] & { covered?: boolean } = {}) {
+ async page(options: Parameters<typeof templatePage>[1] & { covered?: boolean; locale?: string } = {}) {
const snapshot = await this.refresh();
- const items = this.templates(snapshot).map(({ files: _files, ...item }) => item);
+ const items = this.templates(snapshot, options.locale).map(({ files: _files, ...item }) => item);
const visible = options.covered ? items.filter(item => item.posterUrl) : items;
return { ...templatePage(visible, options), catalogTotal: items.length, catalogVersion: snapshot.publication.publicationId, warning: this.warning };
}
diff --git a/server.ts b/server.ts
index db19b4af..a517d5d7 100644
--- a/server.ts
+++ b/server.ts
@@ -366,6 +366,7 @@ export async function handler(req: IncomingMessage, res: ServerResponse, store =
}
if (url.pathname === '/api/templates' && req.method === 'GET') return json(res, 200, { templates });
if (url.pathname === '/api/template-catalog' && req.method === 'GET') return json(res, 200, await templateCatalogFor(store.directory).page({
+ locale: url.searchParams.get('locale') || undefined,
category: url.searchParams.get('category') || 'featured', query: url.searchParams.get('query') || '',
offset: Number(url.searchParams.get('offset') || 0), limit: Number(url.searchParams.get('limit') || 6), grouped: url.searchParams.get('grouped') === 'true',
covered: url.searchParams.get('covered') === 'true',
diff --git a/shared/integration.ts b/shared/integration.ts
index 3c0b3945..4301b42a 100644
--- a/shared/integration.ts
+++ b/shared/integration.ts
@@ -1,3 +1,5 @@
+import { templatePrompts } from './template-prompts.ts';
+import { catalogLocale } from './template-locale.ts';
import { workflowEntryGuide } from './workflow-entry.js';
export const integrationHosts = ['codex', 'claude', 'deepseek', 'chatgpt', 'mcp'] as const;
@@ -74,16 +76,9 @@ export function setupPrompt(info: IntegrationInfo, host: IntegrationHost, locale
export function templatePrompt(info: IntegrationInfo, _host: IntegrationHost, template: { id: string; title: string }, locale = 'zh-CN') {
const environment = info.templateEnvironment ?? info.transport.env?.MOTION_TEMPLATE_ENV ?? 'prod';
const installUrl = `https://releases.open-design.ai/open-motion/${environment === 'dev' ? 'dev/' : ''}install.md`;
- if (locale === 'zh-CN') return `使用说明:请使用 OpenMotion 插件。如未安装,请按 ${installUrl} 安装并接入后继续。
-指定模板:${template.title}(${template.id})
-创作要求:基于模板,结合我的要求和附件创作,默认保留主要动效与风格,并交付 HTML 和 MP4。
-我的要求:
-`;
- return `Instructions: Use the OpenMotion plugin. If it is not installed, follow ${installUrl} to install and connect it, then continue.
-Selected template: ${template.title} (${template.id})
-Creative brief: Adapt the template using my requirements and attachments. Preserve its main motion and style by default, and deliver HTML and MP4.
-My requirements:
-`;
+ const message = templatePrompts[catalogLocale(Object.keys(templatePrompts), locale, 'en')];
+ const values = { installUrl, name: template.title, id: template.id };
+ return message.replace(/\{(installUrl|name|id)\}/g, (_, key: keyof typeof values) => values[key]);
}
export function agentGuide(info: IntegrationInfo, host: IntegrationHost) {
diff --git a/shared/template-locale.ts b/shared/template-locale.ts
new file mode 100644
index 00000000..5925875a
--- /dev/null
+++ b/shared/template-locale.ts
@@ -0,0 +1,7 @@
+/** Prism locale aliases shared by the catalog and local clients. */
+export function catalogLocale(locales: string[], requested: string, fallback: string): string {
+ const normalize = (value: string) => value.toLowerCase() === 'zh' ? 'zh-cn' : value.toLowerCase();
+ return [requested, 'en', fallback]
+ .map(value => locales.find(locale => normalize(locale) === normalize(value)))
+ .find(Boolean) ?? fallback;
+}
diff --git a/shared/template-prompts.ts b/shared/template-prompts.ts
new file mode 100644
index 00000000..49d31712
--- /dev/null
+++ b/shared/template-prompts.ts
@@ -0,0 +1,14 @@
+// Template instructions shared by the Studio and connection-page catalogs.
+export const templatePrompts: Record<string, string> = {
+ "en": "Instructions: Use the OpenMotion plugin. If it is not installed, follow {installUrl} to install and connect it, then continue.\nSelected template: {name} ({id})\nCreative brief: Adapt the template using my requirements and attachments. Preserve its main motion and style by default, and deliver HTML and MP4.\nMy requirements:\n",
+ "zh-CN": "使用说明:请使用 OpenMotion 插件。如未安装,请按 {installUrl} 安装并接入后继续。\n指定模板:{name}({id})\n创作要求:基于模板,结合我的要求和附件创作,默认保留主要动效与风格,并交付 HTML 和 MP4。\n我的要求:\n",
+ "de": "Anleitung: Verwende das OpenMotion-Plugin. Falls es noch nicht installiert ist, installiere und verbinde es gemäß {installUrl} und fahre dann fort.\nAusgewählte Vorlage: {name} ({id})\nGestaltungsauftrag: Passe die Vorlage anhand meiner Anforderungen und Anhänge an. Behalte standardmäßig die wesentlichen Bewegungen und den Stil bei und liefere HTML und MP4.\nMeine Anforderungen:\n",
+ "fr": "Instructions : utilise le plugin OpenMotion. S’il n’est pas installé, suis {installUrl} pour l’installer et le connecter, puis continue.\nModèle sélectionné : {name} ({id})\nConsignes de création : adapte le modèle à mes exigences et pièces jointes. Conserve par défaut ses mouvements principaux et son style, et livre un HTML et un MP4.\nMes exigences :\n",
+ "es": "Instrucciones: usa el plugin OpenMotion. Si no está instalado, sigue {installUrl} para instalarlo y conectarlo; después, continúa.\nPlantilla seleccionada: {name} ({id})\nIndicaciones creativas: adapta la plantilla según mis requisitos y archivos adjuntos. Conserva por defecto sus movimientos principales y su estilo, y entrega HTML y MP4.\nMis requisitos:\n",
+ "it": "Istruzioni: usa il plugin OpenMotion. Se non è installato, segui {installUrl} per installarlo e collegarlo, poi continua.\nModello selezionato: {name} ({id})\nIndicazioni creative: adatta il modello ai miei requisiti e agli allegati. Mantieni per impostazione predefinita i movimenti principali e lo stile, e consegna HTML e MP4.\nI miei requisiti:\n",
+ "ja": "使用方法:OpenMotion プラグインを使用してください。未インストールの場合は、{installUrl} の手順に従ってインストールと接続を済ませてから続けてください。\n指定テンプレート:{name}({id})\n制作要件:テンプレートを基に、私の要望と添付素材を取り入れて制作してください。原則として主な動きとスタイルを保ち、HTML と MP4 を納品してください。\n私の要望:\n",
+ "ko": "사용 안내: OpenMotion 플러그인을 사용해 주세요. 설치되어 있지 않으면 {installUrl}의 안내에 따라 설치하고 연결한 후 계속 진행해 주세요.\n지정 템플릿: {name} ({id})\n제작 요구사항: 템플릿을 바탕으로 내 요구사항과 첨부 자료를 반영해 제작해 주세요. 기본적으로 주요 모션과 스타일을 유지하고 HTML과 MP4를 제공해 주세요.\n내 요구사항:\n",
+ "ru": "Инструкции: Используйте плагин OpenMotion. Если он не установлен, установите и подключите его по инструкции {installUrl}, затем продолжите.\nВыбранный шаблон: {name} ({id})\nТворческое задание: Адаптируйте шаблон с учётом моих требований и вложений. По умолчанию сохраните основные движения и стиль и предоставьте HTML и MP4.\nМои требования:\n",
+ "tr": "Talimatlar: OpenMotion eklentisini kullanın. Yüklü değilse {installUrl} adresindeki talimatlarla kurup bağlayın, ardından devam edin.\nSeçilen şablon: {name} ({id})\nYaratıcı brief: Şablonu isteklerime ve eklerime göre uyarlayın. Varsayılan olarak ana hareketleri ve stili koruyun; HTML ve MP4 teslim edin.\nİsteklerim:\n",
+ "pt-br": "Instruções: Use o plugin OpenMotion. Se ainda não estiver instalado, siga {installUrl} para instalar e conectar, depois continue.\nModelo selecionado: {name} ({id})\nBriefing criativo: Adapte o modelo com base nos meus requisitos e anexos. Por padrão, preserve os principais movimentos e o estilo e entregue HTML e MP4.\nMeus requisitos:\n"
+};
diff --git a/studio/src/i18n/ConnectionI18n.test.ts b/studio/src/i18n/ConnectionI18n.test.ts
index 7a317138..d0a64b80 100644
--- a/studio/src/i18n/ConnectionI18n.test.ts
+++ b/studio/src/i18n/ConnectionI18n.test.ts
@@ -37,7 +37,7 @@ it('polls cache warnings independently of publication changes and preserves gall
expect(root.querySelector('[data-template-id]')).toBe(card);
});
-it('updates live dialog labels while preserving the chosen client, search, preview and copied instructions', async () => {
+it('reloads localized catalog data while preserving the chosen client, search and setup instructions', async () => {
vi.stubGlobal('matchMedia', () => ({ matches: false, addEventListener() {}, removeEventListener() {} }));
vi.stubGlobal('IntersectionObserver', class { observe() {} disconnect() {} });
vi.spyOn(HTMLMediaElement.prototype, 'pause').mockImplementation(() => {});
@@ -59,10 +59,10 @@ it('updates live dialog labels while preserving the chosen client, search, previ
root.querySelector<HTMLButtonElement>('#host-claude')!.click();
const search = root.querySelector<HTMLInputElement>('#template-search')!;
search.value = 'keep this query';
- const card = root.querySelector('[data-template-id]'), video = root.querySelector('video');
- const instruction = root.querySelector('#setup-prompt')!.textContent;
+ const instruction = root.querySelector('#setup-prompt')!.textContent;
for (const { locale } of languages) {
controller.setLanguage(locale, t(locale));
+ await vi.waitFor(() => expect(root.querySelectorAll('[data-template-id]')).toHaveLength(1));
const category = locale === 'en' ? 'A-roll Cuts' : dictionaries[locale]['A-roll Cuts'];
expect(root.querySelector('.connect-template-category')?.textContent).toBe(category);
expect(root.querySelector('.connect-template-category')?.getAttribute('title')).toBe(category);
@@ -75,8 +75,7 @@ it('updates live dialog labels while preserving the chosen client, search, previ
expect(root.querySelector('#tool-list')?.textContent).toContain(translate(locale, 'Read the details and files for one template.'));
expect(root.querySelector('#catalog-error-text')?.textContent).toBe(translate(locale, warning));
expect(search.value).toBe('keep this query');
- expect(root.querySelector('[data-template-id]')).toBe(card);
- expect(root.querySelector('video')).toBe(video);
+ expect(fetch).toHaveBeenCalledWith(expect.stringContaining('locale=' + encodeURIComponent(locale)), expect.anything());
expect(root.querySelector('.connect-template-title')?.textContent).toBe('Preview');
expect(root.querySelector('#setup-prompt')?.textContent).toBe(instruction);
}
diff --git a/studio/src/i18n/de.json b/studio/src/i18n/de.json
index e635c31a..0fb9e11c 100644
--- a/studio/src/i18n/de.json
+++ b/studio/src/i18n/de.json
@@ -1760,5 +1760,46 @@
"This setting applies to MCP and Studio on this installation and is kept after restart.": "Diese Einstellung gilt für MCP und Studio dieser Installation und bleibt nach einem Neustart erhalten.",
"Disabled by your environment settings.": "Durch Ihre Umgebungseinstellungen deaktiviert.",
"Could not load privacy settings.": "Datenschutzeinstellungen konnten nicht geladen werden.",
- "Could not save privacy settings.": "Datenschutzeinstellungen konnten nicht gespeichert werden."
+ "Could not save privacy settings.": "Datenschutzeinstellungen konnten nicht gespeichert werden.",
+ "Colors": "Farben",
+ "Creation models": "Erstellungsmodelle",
+ "Industries": "Branchen",
+ "Name A–Z": "Name A–Z",
+ "Name Z–A": "Name Z–A",
+ "On this page": "Auf dieser Seite",
+ "Popular templates": "Beliebte Vorlagen",
+ "Production notes": "Produktionshinweise",
+ "Recommended order": "Empfohlene Reihenfolge",
+ "Recreate template": "Vorlage nachbauen",
+ "Reference brands": "Referenzmarken",
+ "Use cases": "Anwendungsfälle",
+ "Video types": "Videotypen",
+ "Visual style": "Visueller Stil",
+ "{count} templates": "{count} Vorlagen",
+ "Clear filters": "Filter zurücksetzen",
+ "Download OpenMotion project": "OpenMotion-Projekt herunterladen",
+ "Download failed. Please try again.": "Download fehlgeschlagen. Bitte versuche es erneut.",
+ "Filters": "Filter",
+ "Motion guide": "Motion-Anleitung",
+ "Sort": "Sortieren nach",
+ "View full page": "Vollständige Seite ansehen",
+ "Show more": "Mehr anzeigen",
+ "Downloading…": "Wird heruntergeladen…",
+ "Download motion.md": "motion.md herunterladen",
+ "Square": "Quadratisch",
+ "Landscape": "Querformat",
+ "Portrait": "Hochformat",
+ "Under 10 seconds": "Unter 10 s",
+ "10–15 seconds": "10–15 s",
+ "15–30 seconds": "15–30 s",
+ "30–60 seconds": "30–60 s",
+ "60 seconds or longer": "Ab 60 s",
+ "monochrome": "Einfarbig",
+ "red": "Rot",
+ "orange": "Orange",
+ "yellow": "Gelb",
+ "green": "Grün",
+ "blue": "Blau",
+ "purple": "Violett",
+ "multicolor": "Mehrfarbig"
}
diff --git a/studio/src/i18n/es.json b/studio/src/i18n/es.json
index da7627ce..534a90df 100644
--- a/studio/src/i18n/es.json
+++ b/studio/src/i18n/es.json
@@ -1760,5 +1760,46 @@
"This setting applies to MCP and Studio on this installation and is kept after restart.": "Este ajuste se aplica a MCP y Studio de esta instalación y se conserva tras reiniciar.",
"Disabled by your environment settings.": "Desactivado por la configuración del entorno.",
"Could not load privacy settings.": "No se pudo cargar la configuración de privacidad.",
- "Could not save privacy settings.": "No se pudo guardar la configuración de privacidad."
+ "Could not save privacy settings.": "No se pudo guardar la configuración de privacidad.",
+ "Colors": "Colores",
+ "Creation models": "Modelos de creación",
+ "Industries": "Sectores",
+ "Name A–Z": "Nombre A–Z",
+ "Name Z–A": "Nombre Z–A",
+ "On this page": "En esta página",
+ "Popular templates": "Plantillas populares",
+ "Production notes": "Notas de producción",
+ "Recommended order": "Orden recomendado",
+ "Recreate template": "Recrear plantilla",
+ "Reference brands": "Marcas de referencia",
+ "Use cases": "Casos de uso",
+ "Video types": "Tipos de vídeo",
+ "Visual style": "Estilo visual",
+ "{count} templates": "{count} plantillas",
+ "Clear filters": "Borrar filtros",
+ "Download OpenMotion project": "Descargar proyecto de OpenMotion",
+ "Download failed. Please try again.": "No se ha podido descargar. Inténtalo de nuevo.",
+ "Filters": "Filtros",
+ "Motion guide": "Guía de animación",
+ "Sort": "Ordenar por",
+ "View full page": "Ver página completa",
+ "Show more": "Ver más",
+ "Downloading…": "Descargando…",
+ "Download motion.md": "Descargar motion.md",
+ "Square": "Cuadrado",
+ "Landscape": "Horizontal",
+ "Portrait": "Vertical",
+ "Under 10 seconds": "Menos de 10 s",
+ "10–15 seconds": "10–15 s",
+ "15–30 seconds": "15–30 s",
+ "30–60 seconds": "30–60 s",
+ "60 seconds or longer": "60 s o más",
+ "monochrome": "Monocromo",
+ "red": "Rojo",
+ "orange": "Naranja",
+ "yellow": "Amarillo",
+ "green": "Verde",
+ "blue": "Azul",
+ "purple": "Morado",
+ "multicolor": "Multicolor"
}
diff --git a/studio/src/i18n/fr.json b/studio/src/i18n/fr.json
index 93ed1d71..cab8cb95 100644
--- a/studio/src/i18n/fr.json
+++ b/studio/src/i18n/fr.json
@@ -1760,5 +1760,46 @@
"This setting applies to MCP and Studio on this installation and is kept after restart.": "Ce réglage s’applique à MCP et Studio pour cette installation et reste enregistré après un redémarrage.",
"Disabled by your environment settings.": "Désactivé par vos paramètres d’environnement.",
"Could not load privacy settings.": "Impossible de charger les paramètres de confidentialité.",
- "Could not save privacy settings.": "Impossible d’enregistrer les paramètres de confidentialité."
+ "Could not save privacy settings.": "Impossible d’enregistrer les paramètres de confidentialité.",
+ "Colors": "Couleurs",
+ "Creation models": "Modèles de création",
+ "Industries": "Secteurs",
+ "Name A–Z": "Nom A–Z",
+ "Name Z–A": "Nom Z–A",
+ "On this page": "Sur cette page",
+ "Popular templates": "Modèles populaires",
+ "Production notes": "Notes de production",
+ "Recommended order": "Ordre recommandé",
+ "Recreate template": "Recréer le modèle",
+ "Reference brands": "Marques de référence",
+ "Use cases": "Cas d’usage",
+ "Video types": "Types de vidéo",
+ "Visual style": "Style visuel",
+ "{count} templates": "{count} modèles",
+ "Clear filters": "Effacer les filtres",
+ "Download OpenMotion project": "Télécharger le projet OpenMotion",
+ "Download failed. Please try again.": "Échec du téléchargement. Réessayez.",
+ "Filters": "Filtres",
+ "Motion guide": "Guide d’animation",
+ "Sort": "Trier par",
+ "View full page": "Voir la page complète",
+ "Show more": "Voir plus",
+ "Downloading…": "Téléchargement…",
+ "Download motion.md": "Télécharger motion.md",
+ "Square": "Carré",
+ "Landscape": "Paysage",
+ "Portrait": "Portrait",
+ "Under 10 seconds": "Moins de 10 s",
+ "10–15 seconds": "10–15 s",
+ "15–30 seconds": "15–30 s",
+ "30–60 seconds": "30–60 s",
+ "60 seconds or longer": "60 s ou plus",
+ "monochrome": "Monochrome",
+ "red": "Rouge",
+ "orange": "Orange",
+ "yellow": "Jaune",
+ "green": "Vert",
+ "blue": "Bleu",
+ "purple": "Violet",
+ "multicolor": "Multicolore"
}
diff --git a/studio/src/i18n/it.json b/studio/src/i18n/it.json
index b85389a6..97e70383 100644
--- a/studio/src/i18n/it.json
+++ b/studio/src/i18n/it.json
@@ -1760,5 +1760,46 @@
"This setting applies to MCP and Studio on this installation and is kept after restart.": "Questa impostazione si applica a MCP e Studio di questa installazione e viene mantenuta dopo il riavvio.",
"Disabled by your environment settings.": "Disattivato dalle impostazioni dell’ambiente.",
"Could not load privacy settings.": "Impossibile caricare le impostazioni privacy.",
- "Could not save privacy settings.": "Impossibile salvare le impostazioni privacy."
+ "Could not save privacy settings.": "Impossibile salvare le impostazioni privacy.",
+ "Colors": "Colori",
+ "Creation models": "Modelli di creazione",
+ "Industries": "Settori",
+ "Name A–Z": "Nome A–Z",
+ "Name Z–A": "Nome Z–A",
+ "On this page": "In questa pagina",
+ "Popular templates": "Modelli popolari",
+ "Production notes": "Note di produzione",
+ "Recommended order": "Ordine consigliato",
+ "Recreate template": "Ricrea modello",
+ "Reference brands": "Marchi di riferimento",
+ "Use cases": "Casi d’uso",
+ "Video types": "Tipi di video",
+ "Visual style": "Stile visivo",
+ "{count} templates": "{count} modelli",
+ "Clear filters": "Cancella filtri",
+ "Download OpenMotion project": "Scarica il progetto OpenMotion",
+ "Download failed. Please try again.": "Download non riuscito. Riprova.",
+ "Filters": "Filtri",
+ "Motion guide": "Guida all’animazione",
+ "Sort": "Ordina per",
+ "View full page": "Vedi pagina completa",
+ "Show more": "Mostra altro",
+ "Downloading…": "Download in corso…",
+ "Download motion.md": "Scarica motion.md",
+ "Square": "Quadrato",
+ "Landscape": "Orizzontale",
+ "Portrait": "Verticale",
+ "Under 10 seconds": "Meno di 10 s",
+ "10–15 seconds": "10–15 s",
+ "15–30 seconds": "15–30 s",
+ "30–60 seconds": "30–60 s",
+ "60 seconds or longer": "60 s o più",
+ "monochrome": "Monocromatico",
+ "red": "Rosso",
+ "orange": "Arancione",
+ "yellow": "Giallo",
+ "green": "Verde",
+ "blue": "Blu",
+ "purple": "Viola",
+ "multicolor": "Multicolore"
}
diff --git a/studio/src/i18n/ja.json b/studio/src/i18n/ja.json
index 07a25472..3f4dff90 100644
--- a/studio/src/i18n/ja.json
+++ b/studio/src/i18n/ja.json
@@ -218,7 +218,7 @@
"Drop media here or describe your video to start": "ここにメディアをドロップするか、ビデオを説明して開始します",
"Duck under voice": "ボーカルを優先し、音量を下げる",
"Duplicate": "コピーを作成する",
- "Duration": "持続時間",
+ "Duration": "長さ",
"Ease": "イージング",
"Ease editor mode": "編集モードの緩和",
"Edit": "編集",
@@ -1192,7 +1192,7 @@
"Start from your footage, or make a template your own.": "映像から開始するか、独自のテンプレートを作成します。",
"Upload video, images or audio. Start editing right away.": "動画、画像、音声をアップロードします。すぐに編集を開始します。",
"Recent projects": "最近のプロジェクト",
- "Show less": "閉じる",
+ "Show less": "折りたたむ",
"View all": "全て見る",
"Your projects will appear here.": "プロジェクトがここに保存されます。",
"A starting point for every idea": "適切なテンプレートから始める",
@@ -1578,7 +1578,7 @@
"OPENMOTION FOR AGENTS": "エージェント用OpenMotion",
"PICK A TEMPLATE. MAKE IT YOURS.": "テンプレートを選んで作品を作成します。",
"YOUR VIDEO. STILL YOURS.": "あなたの仕事はあなたがコントロールするものです。",
- "Search templates": "検索テンプレート",
+ "Search templates": "テンプレートを検索",
"Endpoint ID": "エンドポイントID",
"Something went wrong": "何か問題が発生しました",
"Reload Studio": "リロードスタジオ",
@@ -1595,7 +1595,7 @@
"{label} copied. Paste it into {host}.": "{label} が {host} にコピー&ペーストされました。",
"{host} · Connection guide": "{host}・アクセスガイド",
"Workspace reachable · v{version}": "ワークスペースに到達可能 · v{version}",
- "Preview template {title}": "プレビューテンプレート {title}",
+ "Preview template {title}": "テンプレート「{title}」をプレビュー",
"Copy to recreate {title}": "ワンクリックレプリカ {title}",
"View the original source by {author}": "{author}のオリジナルソースを表示する",
"{platform} original post · {value} {unit} · Hyperframes data · Synced {date}": "{platform} オリジナル投稿 · {value} {unit} · ハイパーフレーム データ · 同期された {date}",
@@ -1724,5 +1724,46 @@
"This setting applies to MCP and Studio on this installation and is kept after restart.": "この設定は同じインストールの MCP と Studio に適用され、再起動後も保持されます。",
"Disabled by your environment settings.": "環境設定により無効になっています。",
"Could not load privacy settings.": "プライバシー設定を読み込めませんでした。",
- "Could not save privacy settings.": "プライバシー設定を保存できませんでした。"
+ "Could not save privacy settings.": "プライバシー設定を保存できませんでした。",
+ "10–15 seconds": "10〜15 秒",
+ "15–30 seconds": "15〜30 秒",
+ "30–60 seconds": "30〜60 秒",
+ "60 seconds or longer": "60 秒以上",
+ "Under 10 seconds": "10 秒未満",
+ "Clear filters": "絞り込みを解除",
+ "Colors": "色",
+ "Creation models": "制作に使用したモデル",
+ "Download OpenMotion project": "OpenMotion プロジェクトをダウンロード",
+ "Download failed. Please try again.": "ダウンロードできませんでした。もう一度お試しください。",
+ "Download motion.md": "motion.md をダウンロード",
+ "Downloading…": "ダウンロード中…",
+ "Filters": "絞り込み",
+ "Industries": "業種",
+ "Landscape": "横長",
+ "Portrait": "縦長",
+ "Square": "正方形",
+ "Motion guide": "モーションガイド",
+ "Name A–Z": "名前:A→Z",
+ "Name Z–A": "名前:Z→A",
+ "On this page": "このページの内容",
+ "Popular templates": "人気のテンプレート",
+ "Production notes": "制作時のポイント",
+ "Recommended order": "おすすめ順",
+ "Recreate template": "テンプレートを再現",
+ "Reference brands": "参考ブランド",
+ "Show more": "もっと見る",
+ "Sort": "並べ替え",
+ "Use cases": "用途",
+ "Video types": "動画の種類",
+ "View full page": "ページ全体を見る",
+ "Visual style": "ビジュアルスタイル",
+ "{count} templates": "{count} 件のテンプレート",
+ "yellow": "黄",
+ "multicolor": "マルチカラー",
+ "green": "緑",
+ "orange": "オレンジ",
+ "purple": "紫",
+ "red": "赤",
+ "blue": "青",
+ "monochrome": "モノクロ"
}
diff --git a/studio/src/i18n/ko.json b/studio/src/i18n/ko.json
index 7c78c9b3..31274649 100644
--- a/studio/src/i18n/ko.json
+++ b/studio/src/i18n/ko.json
@@ -218,7 +218,7 @@
"Drop media here or describe your video to start": "여기에 미디어를 놓거나 비디오를 설명하여 시작하세요.",
"Duck under voice": "보컬을 우선으로 하고 볼륨을 낮추세요",
"Duplicate": "복사하기",
- "Duration": "기간",
+ "Duration": "길이",
"Ease": "이징",
"Ease editor mode": "편집 모드 완화",
"Edit": "편집",
@@ -1192,7 +1192,7 @@
"Start from your footage, or make a template your own.": "영상에서 시작하거나 자신만의 템플릿을 만드세요.",
"Upload video, images or audio. Start editing right away.": "비디오, 이미지 또는 오디오를 업로드하세요. 바로 편집을 시작하세요.",
"Recent projects": "최근 프로젝트",
- "Show less": "닫기",
+ "Show less": "접기",
"View all": "모두 보기",
"Your projects will appear here.": "프로젝트가 여기에 저장됩니다.",
"A starting point for every idea": "좋은 템플릿으로 시작하세요",
@@ -1416,7 +1416,7 @@
"Browse templates and references. Choose an available local client when you are ready to send an instruction to your Agent.": "템플릿과 참고 자료를 찾아보세요. 에이전트에 지침을 보낼 준비가 되면 사용 가능한 로컬 클라이언트를 선택하세요.",
"Close manual copy": "수동 복사 끄기",
"Close connection guide": "접근안내 닫기",
- "Close template preview": "关闭模板预览",
+ "Close template preview": "템플릿 미리보기 닫기",
"Other MCP tools": "기타 MCP 도구",
"Write native HTML, CSS and JS, and the editor updates simultaneously.": "기본 HTML, CSS 및 JS를 작성하면 편집기가 동시에 업데이트됩니다.",
"Creative workspace": "창작 작업 공간",
@@ -1578,7 +1578,7 @@
"OPENMOTION FOR AGENTS": "에이전트용 OpenMotion",
"PICK A TEMPLATE. MAKE IT YOURS.": "템플릿을 선택하고 작품을 만듭니다.",
"YOUR VIDEO. STILL YOURS.": "귀하의 작업은 귀하가 통제할 수 있습니다.",
- "Search templates": "검색 템플릿",
+ "Search templates": "템플릿 검색",
"Endpoint ID": "엔드포인트 ID",
"Something went wrong": "뭔가 잘못됐어요",
"Reload Studio": "리로드 스튜디오",
@@ -1595,7 +1595,7 @@
"{label} copied. Paste it into {host}.": "{label}가 {host}에 복사되어 붙여넣어졌습니다.",
"{host} · Connection guide": "{host} · 액세스 안내",
"Workspace reachable · v{version}": "연결 가능한 작업 공간 · v{version}",
- "Preview template {title}": "미리보기 템플릿 {title}",
+ "Preview template {title}": "{title} 템플릿 미리보기",
"Copy to recreate {title}": "원클릭 복제 {title}",
"View the original source by {author}": "{author} 원본 소스 보기",
"{platform} original post · {value} {unit} · Hyperframes data · Synced {date}": "{platform} 원본 게시물 · {value} {unit} · 하이퍼프레임 데이터 · 동기화된 {date}",
@@ -1724,5 +1724,46 @@
"This setting applies to MCP and Studio on this installation and is kept after restart.": "이 설정은 이 설치의 MCP와 Studio에 적용되며 다시 시작해도 유지됩니다.",
"Disabled by your environment settings.": "환경 설정으로 비활성화되었습니다.",
"Could not load privacy settings.": "개인정보 설정을 불러오지 못했습니다.",
- "Could not save privacy settings.": "개인정보 설정을 저장하지 못했습니다."
+ "Could not save privacy settings.": "개인정보 설정을 저장하지 못했습니다.",
+ "10–15 seconds": "10~15초",
+ "15–30 seconds": "15~30초",
+ "30–60 seconds": "30~60초",
+ "60 seconds or longer": "60초 이상",
+ "Under 10 seconds": "10초 미만",
+ "Clear filters": "필터 초기화",
+ "Colors": "색상",
+ "Creation models": "제작 모델",
+ "Download OpenMotion project": "OpenMotion 프로젝트 다운로드",
+ "Download failed. Please try again.": "다운로드하지 못했습니다. 다시 시도해 주세요.",
+ "Download motion.md": "motion.md 다운로드",
+ "Downloading…": "다운로드 중…",
+ "Filters": "필터",
+ "Industries": "산업 분야",
+ "Landscape": "가로형",
+ "Portrait": "세로형",
+ "Square": "정사각형",
+ "Motion guide": "모션 가이드",
+ "Name A–Z": "이름: A–Z",
+ "Name Z–A": "이름: Z–A",
+ "On this page": "페이지 목차",
+ "Popular templates": "인기 템플릿",
+ "Production notes": "제작 참고사항",
+ "Recommended order": "추천순",
+ "Recreate template": "템플릿 재현",
+ "Reference brands": "참고 브랜드",
+ "Show more": "더 보기",
+ "Sort": "정렬",
+ "Use cases": "사용 목적",
+ "Video types": "영상 유형",
+ "View full page": "전체 페이지 보기",
+ "Visual style": "비주얼 스타일",
+ "{count} templates": "템플릿 {count}개",
+ "yellow": "노랑",
+ "multicolor": "다색",
+ "green": "초록",
+ "orange": "주황",
+ "purple": "보라",
+ "red": "빨강",
+ "blue": "파랑",
+ "monochrome": "흑백"
}
diff --git a/studio/src/i18n/mvp-zh-CN.json b/studio/src/i18n/mvp-zh-CN.json
index 7ea5e33e..2a45e3ab 100644
--- a/studio/src/i18n/mvp-zh-CN.json
+++ b/studio/src/i18n/mvp-zh-CN.json
@@ -177,7 +177,6 @@
"Matrix": "矩阵",
"Hatching": "排线",
"Circle": "圆形",
- "Square": "方形",
"Diamond": "菱形",
"Triangle": "三角形",
"Record gesture": "录制手势",
@@ -706,7 +705,6 @@
"Timeline-driven paper, tape, and flash dressing for a freeze-frame or background-removed subject": "随时间轴变化的纸张、胶带与闪光装饰,适用于定格画面或抠像主体。",
"Seek-safe falling-snow overlay: sparse or dense flakes drift down with size, speed and opacity correlated per flake for depth, radial-masked so the frame center stays clear": "支持任意时间预览的飘雪叠加。可调节雪花密度,通过不同大小、速度与透明度呈现纵深,并保持画面中心清晰。",
"Seek-safe night-sky overlay: sparse or dense stars in three size tiers that twinkle and drift in two parallax layers, radial-masked to keep the frame center clear": "支持任意时间预览的星空叠加。可调节星星密度,三种大小的星星在双层视差中闪烁漂移,并保持画面中心清晰。",
- "Filters": "筛选",
"Dynamics": "动态处理",
"Non-linear": "非线性效果",
"Too much low-end body, so it booms.": "低频过重,声音轰鸣。",
@@ -965,44 +963,5 @@
"Technical details": "技术详情",
"Preparation progress unavailable": "暂时无法获取准备进度",
"Your files are ready to import": "所选文件可继续导入",
- "Continue import": "继续导入",
- "Reference brands": "参考品牌",
- "Use cases": "使用场景",
- "Video types": "视频类型",
- "Industries": "行业",
- "Creation models": "创作模型",
- "Colors": "颜色",
- "Popular templates": "热门模板",
- "{count} templates": "{count} 个模板",
- "Sort": "排序",
- "Recommended order": "推荐顺序",
- "Name A–Z": "名称正序",
- "Name Z–A": "名称倒序",
- "Clear filters": "清除筛选",
- "Show more": "查看更多",
- "Landscape": "横屏",
- "Portrait": "竖屏",
- "Under 10 seconds": "10 秒以内",
- "10–15 seconds": "10–15 秒",
- "15–30 seconds": "15–30 秒",
- "30–60 seconds": "30–60 秒",
- "60 seconds or longer": "60 秒及以上",
- "monochrome": "黑白灰",
- "red": "红色",
- "orange": "橙色",
- "yellow": "黄色",
- "green": "绿色",
- "blue": "蓝色",
- "purple": "紫色",
- "multicolor": "多色",
- "Recreate template": "复刻模板",
- "Download motion.md": "下载 motion.md",
- "Downloading…": "下载中…",
- "Download failed. Please try again.": "下载失败,请重试。",
- "Download OpenMotion project": "下载 OpenMotion 工程",
- "Motion guide": "动效说明",
- "On this page": "本页目录",
- "Visual style": "风格描述",
- "Production notes": "制作要点",
- "View full page": "查看完整页面"
+ "Continue import": "继续导入"
}
diff --git a/studio/src/i18n/pt-BR.json b/studio/src/i18n/pt-BR.json
index a9c348eb..ad5cb397 100644
--- a/studio/src/i18n/pt-BR.json
+++ b/studio/src/i18n/pt-BR.json
@@ -1760,5 +1760,46 @@
"This setting applies to MCP and Studio on this installation and is kept after restart.": "Esta configuração se aplica ao MCP e ao Studio desta instalação e é mantida após reiniciar.",
"Disabled by your environment settings.": "Desativado pelas configurações do ambiente.",
"Could not load privacy settings.": "Não foi possível carregar as configurações de privacidade.",
- "Could not save privacy settings.": "Não foi possível salvar as configurações de privacidade."
+ "Could not save privacy settings.": "Não foi possível salvar as configurações de privacidade.",
+ "10–15 seconds": "10–15 segundos",
+ "15–30 seconds": "15–30 segundos",
+ "30–60 seconds": "30–60 segundos",
+ "60 seconds or longer": "60 segundos ou mais",
+ "Clear filters": "Limpar filtros",
+ "Colors": "Cores",
+ "Creation models": "Modelos de criação",
+ "Download OpenMotion project": "Baixar projeto OpenMotion",
+ "Download failed. Please try again.": "Falha no download. Tente novamente.",
+ "Download motion.md": "Baixar motion.md",
+ "Downloading…": "Baixando…",
+ "Filters": "Filtros",
+ "Industries": "Setores",
+ "Landscape": "Paisagem",
+ "Motion guide": "Guia de animação",
+ "Name A–Z": "Nome: A–Z",
+ "Name Z–A": "Nome: Z–A",
+ "On this page": "Nesta página",
+ "Popular templates": "Modelos populares",
+ "Portrait": "Retrato",
+ "Production notes": "Notas de produção",
+ "Recommended order": "Ordem recomendada",
+ "Recreate template": "Recriar modelo",
+ "Reference brands": "Marcas de referência",
+ "Show more": "Mostrar mais",
+ "Sort": "Ordenar",
+ "Square": "Quadrado",
+ "Under 10 seconds": "Menos de 10 segundos",
+ "Use cases": "Casos de uso",
+ "Video types": "Tipos de vídeo",
+ "View full page": "Ver página completa",
+ "Visual style": "Estilo visual",
+ "{count} templates": "{count} modelos",
+ "yellow": "Amarelo",
+ "multicolor": "Multicolorido",
+ "green": "Verde",
+ "orange": "Laranja",
+ "purple": "Roxo",
+ "red": "Vermelho",
+ "blue": "Azul",
+ "monochrome": "Monocromático"
}
diff --git a/studio/src/i18n/ru.json b/studio/src/i18n/ru.json
index dc395692..dbb6bd03 100644
--- a/studio/src/i18n/ru.json
+++ b/studio/src/i18n/ru.json
@@ -1784,5 +1784,46 @@
"This setting applies to MCP and Studio on this installation and is kept after restart.": "Настройка действует для MCP и Studio этой установки и сохраняется после перезапуска.",
"Disabled by your environment settings.": "Отключено настройками окружения.",
"Could not load privacy settings.": "Не удалось загрузить настройки конфиденциальности.",
- "Could not save privacy settings.": "Не удалось сохранить настройки конфиденциальности."
+ "Could not save privacy settings.": "Не удалось сохранить настройки конфиденциальности.",
+ "10–15 seconds": "10–15 секунд",
+ "15–30 seconds": "15–30 секунд",
+ "30–60 seconds": "30–60 секунд",
+ "60 seconds or longer": "60 секунд и более",
+ "Clear filters": "Сбросить фильтры",
+ "Colors": "Цвета",
+ "Creation models": "Модели для создания",
+ "Download OpenMotion project": "Скачать проект OpenMotion",
+ "Download failed. Please try again.": "Не удалось скачать. Попробуйте ещё раз.",
+ "Download motion.md": "Скачать motion.md",
+ "Downloading…": "Скачивание…",
+ "Filters": "Фильтры",
+ "Industries": "Отрасли",
+ "Landscape": "Альбомное",
+ "Motion guide": "Руководство по анимации",
+ "Name A–Z": "Название: А–Я",
+ "Name Z–A": "Название: Я–А",
+ "On this page": "На этой странице",
+ "Popular templates": "Популярные шаблоны",
+ "Portrait": "Портретное",
+ "Production notes": "Примечания к созданию",
+ "Recommended order": "Рекомендуемый порядок",
+ "Recreate template": "Воссоздать шаблон",
+ "Reference brands": "Бренды-референсы",
+ "Show more": "Показать больше",
+ "Sort": "Сортировка",
+ "Square": "Квадратное",
+ "Under 10 seconds": "Менее 10 секунд",
+ "Use cases": "Сценарии использования",
+ "Video types": "Типы видео",
+ "View full page": "Открыть полную страницу",
+ "Visual style": "Визуальный стиль",
+ "{count} templates": "Шаблонов: {count}",
+ "yellow": "Жёлтый",
+ "multicolor": "Разноцветный",
+ "green": "Зелёный",
+ "orange": "Оранжевый",
+ "purple": "Фиолетовый",
+ "red": "Красный",
+ "blue": "Синий",
+ "monochrome": "Монохромный"
}
diff --git a/studio/src/i18n/tr.json b/studio/src/i18n/tr.json
index 164f4fcf..6a24961f 100644
--- a/studio/src/i18n/tr.json
+++ b/studio/src/i18n/tr.json
@@ -1724,5 +1724,46 @@
"This setting applies to MCP and Studio on this installation and is kept after restart.": "Bu ayar, bu kurulumdaki MCP ve Studio için geçerlidir ve yeniden başlatıldıktan sonra korunur.",
"Disabled by your environment settings.": "Ortam ayarlarınız tarafından devre dışı bırakıldı.",
"Could not load privacy settings.": "Gizlilik ayarları yüklenemedi.",
- "Could not save privacy settings.": "Gizlilik ayarları kaydedilemedi."
+ "Could not save privacy settings.": "Gizlilik ayarları kaydedilemedi.",
+ "10–15 seconds": "10–15 saniye",
+ "15–30 seconds": "15–30 saniye",
+ "30–60 seconds": "30–60 saniye",
+ "60 seconds or longer": "60 saniye ve üzeri",
+ "Clear filters": "Filtreleri temizle",
+ "Colors": "Renkler",
+ "Creation models": "Üretim modelleri",
+ "Download OpenMotion project": "OpenMotion projesini indir",
+ "Download failed. Please try again.": "İndirme başarısız. Lütfen tekrar deneyin.",
+ "Download motion.md": "motion.md dosyasını indir",
+ "Downloading…": "İndiriliyor…",
+ "Filters": "Filtreler",
+ "Industries": "Sektörler",
+ "Landscape": "Yatay",
+ "Motion guide": "Animasyon rehberi",
+ "Name A–Z": "Ad: A–Z",
+ "Name Z–A": "Ad: Z–A",
+ "On this page": "Bu sayfada",
+ "Popular templates": "Popüler şablonlar",
+ "Portrait": "Dikey",
+ "Production notes": "Üretim notları",
+ "Recommended order": "Önerilen sıralama",
+ "Recreate template": "Şablonu yeniden oluştur",
+ "Reference brands": "Referans markalar",
+ "Show more": "Daha fazla göster",
+ "Sort": "Sırala",
+ "Square": "Kare",
+ "Under 10 seconds": "10 saniyeden kısa",
+ "Use cases": "Kullanım alanları",
+ "Video types": "Video türleri",
+ "View full page": "Tam sayfayı görüntüle",
+ "Visual style": "Görsel stil",
+ "{count} templates": "{count} şablon",
+ "yellow": "Sarı",
+ "multicolor": "Çok renkli",
+ "green": "Yeşil",
+ "orange": "Turuncu",
+ "purple": "Mor",
+ "red": "Kırmızı",
+ "blue": "Mavi",
+ "monochrome": "Tek renkli"
}
diff --git a/studio/src/i18n/zh-CN.json b/studio/src/i18n/zh-CN.json
index 2e5bb7f6..df5c8fe1 100644
--- a/studio/src/i18n/zh-CN.json
+++ b/studio/src/i18n/zh-CN.json
@@ -1724,5 +1724,46 @@
"This setting applies to MCP and Studio on this installation and is kept after restart.": "此设置同时适用于本次安装的 MCP 和 Studio,重启后仍然保留。",
"Disabled by your environment settings.": "已由环境设置关闭。",
"Could not load privacy settings.": "无法加载隐私设置。",
- "Could not save privacy settings.": "无法保存隐私设置。"
+ "Could not save privacy settings.": "无法保存隐私设置。",
+ "10–15 seconds": "10–15 秒",
+ "15–30 seconds": "15–30 秒",
+ "30–60 seconds": "30–60 秒",
+ "60 seconds or longer": "60 秒及以上",
+ "Clear filters": "清除筛选",
+ "Colors": "颜色",
+ "Creation models": "创作模型",
+ "Download OpenMotion project": "下载 OpenMotion 工程",
+ "Download failed. Please try again.": "下载失败,请重试。",
+ "Download motion.md": "下载 motion.md",
+ "Downloading…": "下载中…",
+ "Filters": "筛选",
+ "Industries": "行业",
+ "Landscape": "横屏",
+ "Motion guide": "动效说明",
+ "Name A–Z": "名称正序",
+ "Name Z–A": "名称倒序",
+ "On this page": "本页目录",
+ "Popular templates": "热门模板",
+ "Portrait": "竖屏",
+ "Production notes": "制作要点",
+ "Recommended order": "推荐顺序",
+ "Recreate template": "复刻模板",
+ "Reference brands": "参考品牌",
+ "Show more": "查看更多",
+ "Sort": "排序",
+ "Square": "方形",
+ "Under 10 seconds": "10 秒以内",
+ "Use cases": "使用场景",
+ "Video types": "视频类型",
+ "View full page": "查看完整页面",
+ "Visual style": "风格描述",
+ "blue": "蓝色",
+ "green": "绿色",
+ "monochrome": "黑白灰",
+ "multicolor": "多色",
+ "orange": "橙色",
+ "purple": "紫色",
+ "red": "红色",
+ "yellow": "黄色",
+ "{count} templates": "{count} 个模板"
}
diff --git a/studio/src/motion/TemplateLibraryDialog.test.tsx b/studio/src/motion/TemplateLibraryDialog.test.tsx
index 2e777a60..b93114c8 100644
--- a/studio/src/motion/TemplateLibraryDialog.test.tsx
+++ b/studio/src/motion/TemplateLibraryDialog.test.tsx
@@ -2,7 +2,7 @@
import React, { act } from 'react';
import { createRoot, type Root } from 'react-dom/client';
import { afterEach, beforeEach, expect, it, vi } from 'vitest';
-import { I18nProvider } from '../i18n/I18n';
+import { I18nProvider, useI18n } from '../i18n/I18n';
import { TemplateLibraryDialog } from './TemplateLibraryDialog';
globalThis.IS_REACT_ACT_ENVIRONMENT = true;
@@ -55,3 +55,20 @@ it('copies the requested remote DEV prompt and preserves editable opening', asyn
await act(async () => button('Second').click());
expect(button('打开并编辑 ↗')).toBeUndefined();
});
+
+it('reloads template data when the editor language changes and clears language-specific filters', async () => {
+ function App() {
+ const { setLocale } = useI18n();
+ return <><button onClick={() => setLocale('ja')}>Japanese</button><TemplateLibraryDialog open busy={false} error="" onClose={() => {}} onOpen={() => {}} /></>;
+ }
+ vi.stubGlobal('fetch', vi.fn(async (url: string) => Response.json(url.endsWith('/integration') ? {
+ templateEnvironment: 'dev', transport: { env: {} },
+ } : { items: items.map(item => ({ ...item, title: url.includes('locale=ja') ? '日本語テンプレート' : item.title })), catalogVersion: 'v1', next: null, total: 2 })));
+ await act(async () => root.render(<I18nProvider initialLocale="en"><App /></I18nProvider>));
+ await act(async () => [...host.querySelectorAll<HTMLButtonElement>('aside button')].find(el => el.textContent?.includes('Figma'))!.click());
+ await act(async () => button('Japanese').click());
+ expect(fetch).toHaveBeenCalledWith(expect.stringContaining('locale=ja'), expect.anything());
+ expect(host.textContent).toContain('日本語テンプレート');
+ expect(host.textContent).not.toContain('First');
+ expect(host.querySelectorAll('[data-template-id]')).toHaveLength(3);
+});
diff --git a/studio/src/motion/TemplateLibraryDialog.tsx b/studio/src/motion/TemplateLibraryDialog.tsx
index a8c110e2..506a71e4 100644
--- a/studio/src/motion/TemplateLibraryDialog.tsx
+++ b/studio/src/motion/TemplateLibraryDialog.tsx
@@ -87,6 +87,7 @@ export function TemplateLibraryDialog(props: Props) {
}, [props.open]);
useEffect(() => {
if (!props.open) return;
+ setCatalog([]); setSelected({}); setQuery(''); setPreview(null); detail.current?.close(); useDialog.current?.close();
const controller = new AbortController();
let version: string | undefined, pending = false;
async function load() {
@@ -94,7 +95,7 @@ export function TemplateLibraryDialog(props: Props) {
try {
const items: GalleryTemplate[] = []; let offset: number | null = 0;
while (offset !== null) {
- const page: TemplatePage = await motionApi(`/template-catalog?category=all&covered=true&limit=60&offset=${offset}`, { signal: controller.signal });
+ const page: TemplatePage = await motionApi(`/template-catalog?category=all&covered=true&limit=60&offset=${offset}&locale=${encodeURIComponent(locale)}`, { signal: controller.signal });
items.push(...page.items); offset = page.next; version = page.catalogVersion; setWarning(page.warning ?? '');
}
if (!controller.signal.aborted) setCatalog(items);
@@ -106,7 +107,7 @@ export function TemplateLibraryDialog(props: Props) {
if (pending || document.hidden) return;
pending = true;
try {
- const page = await motionApi<TemplatePage>('/template-catalog?limit=1', { signal: controller.signal });
+ const page = await motionApi<TemplatePage>(`/template-catalog?limit=1&locale=${encodeURIComponent(locale)}`, { signal: controller.signal });
if (controller.signal.aborted) return;
setWarning(page.warning ?? '');
if (page.catalogVersion !== version) await load();
@@ -114,7 +115,7 @@ export function TemplateLibraryDialog(props: Props) {
}, 5000);
void motionApi<IntegrationInfo>('/integration', { signal: controller.signal }).then(value => { info.current = value; }).catch(() => {});
return () => { controller.abort(); clearInterval(timer); };
- }, [props.open, attempt]);
+ }, [props.open, attempt, locale]);
const available = useMemo(() => facets.map(([key, label]) => ({ key, label, values: [...new Set(catalog.flatMap(item => values(item, key)))] })).filter(facet => facet.values.length), [catalog]);
const hasFilters = Boolean(query || Object.values(selected).some(items => items?.length));
const visible = useMemo(() => catalog.filter(item => {
diff --git a/tests/catalog.test.ts b/tests/catalog.test.ts
index 20055490..9e428f32 100644
--- a/tests/catalog.test.ts
+++ b/tests/catalog.test.ts
@@ -166,3 +166,18 @@ test('template prompts use public installation URLs for the effective package en
assert.match(prompt, /open-motion\/install.md/); assert.doesNotMatch(prompt, /\/dev\/|127\.0\.0\.1|localhost/);
assert.match(prompt, /Selected template \(exact-id\)/); assert.match(prompt, /HTML and MP4/);
});
+
+test('template prompts cover all eleven locales and preserve literal template values', async () => {
+ const { templatePrompts } = await import('../shared/template-prompts.ts');
+ const info = { templateEnvironment: 'dev', transport: { env: {} } } as Parameters<typeof templatePrompt>[0];
+ const template = { id: 'same-id', title: 'Literal $& {name}' };
+ assert.equal(Object.keys(templatePrompts).length, 11);
+ const prompts = Object.keys(templatePrompts).map(locale => templatePrompt(info, 'codex', template, locale));
+ assert.equal(new Set(prompts).size, 11);
+ for (const prompt of prompts) {
+ assert.ok(prompt.includes(template.title)); assert.ok(prompt.includes(template.id));
+ assert.ok(prompt.includes('https://releases.open-design.ai/open-motion/dev/install.md'));
+ assert.match(prompt, /HTML.*MP4/); assert.doesNotMatch(prompt, /\{installUrl\}|\{id\}/);
+ }
+ assert.equal(templatePrompt(info, 'codex', template, 'pt-BR'), templatePrompt(info, 'codex', template, 'pt-br'));
+});
diff --git a/tests/prism-templates.test.ts b/tests/prism-templates.test.ts
index a9052bb8..09b09607 100644
--- a/tests/prism-templates.test.ts
+++ b/tests/prism-templates.test.ts
@@ -162,3 +162,23 @@ test('gallery carries Prism facets and ordering without leaking project files',
assert.deepEqual(items[0].creationModels, ['Model A']); assert.equal(items[0].hasHtmlProject, true);
assert.equal('files' in items[0], false);
});
+
+test('one cached publication serves concurrent locales and locale-specific downloads', async t => {
+ const directory = await mkdtemp(path.join(tmpdir(), 'motion-prism-locales-'));
+ t.after(() => rm(directory, { recursive: true, force: true }));
+ const remote = mockPrism(), data = publication();
+ const localized = (title: string, document: string) => ({ templates: data.content['zh-CN'].templates.map(item => ({ ...item,
+ original: { ...item.original, templateName: title }, motionDocumentUrl: document,
+ })) });
+ Object.assign(data.content, { en: localized('English template', 'https://example.com/en.zip'), 'pt-br': localized('Modelo', 'https://example.com/pt.zip') });
+ remote.update(data);
+ const catalog = new TemplateCatalog(directory, { fetch: remote.request });
+ const [english, portuguese, chinese, fallback] = await Promise.all(['en', 'pt-BR', 'zh', 'ja'].map(locale => catalog.page({ locale })));
+ assert.equal(remote.requests.length, 1);
+ assert.equal(english.items[0].title, 'English template');
+ assert.equal(portuguese.items[0].title, 'Modelo');
+ assert.equal(portuguese.items[0].motionDocumentUrl, 'https://example.com/pt.zip');
+ assert.equal(chinese.items[0].title, '测试模板 1');
+ assert.equal(fallback.items[0].title, 'English template');
+ assert.equal((await catalog.get('test-motion-1')).files[0].url, data.content['zh-CN'].templates[0].files[0].url);
+});
diff --git a/web/connect.ts b/web/connect.ts
index 54d569ca..7c0767c0 100644
--- a/web/connect.ts
+++ b/web/connect.ts
@@ -154,7 +154,7 @@ export function mountConnection(root: HTMLElement, options: { close: () => void;
galleryController = mountTemplates(root, { language, info: () => info, host: () => host, copy, useTemplate: options.useTemplate });
renderHost();
return {
- setLanguage(locale: Locale, translate: Translate) { resetCopied(); language.setLanguage(locale, translate); renderHost(); },
+ setLanguage(locale: Locale, translate: Translate) { resetCopied(); language.setLanguage(locale, translate); galleryController?.setLanguage(); renderHost(); },
showTemplates() { galleryController!.showAll(); scrollTo('templates'); },
resume() { void checkConnection(); galleryController!.resume(); },
suspend() { galleryController!.suspend(); resetCopied(); root.querySelectorAll<HTMLDialogElement>('dialog[open]').forEach(dialog => dialog.close()); },
diff --git a/web/template-gallery.ts b/web/template-gallery.ts
index 6733f59e..902c53a3 100644
--- a/web/template-gallery.ts
+++ b/web/template-gallery.ts
@@ -141,7 +141,7 @@ export function mountTemplates(root: HTMLElement, options: {
element<HTMLButtonElement>('more-templates').disabled = true; language.text(element('template-count'), "Loading templates…");
const params = new URLSearchParams({ category, query: search.value, offset: String(reset ? 0 : next ?? 0), limit: '6', grouped: 'true', covered: 'true' });
try {
- const response = await fetch('/motion-api/template-catalog?' + params, { signal: AbortSignal.any([controller.signal, AbortSignal.timeout(15000)]) });
+ const response = await fetch('/motion-api/template-catalog?' + params + '&locale=' + encodeURIComponent(language.locale), { signal: AbortSignal.any([controller.signal, AbortSignal.timeout(15000)]) });
if (!response.ok) throw new Error("Template catalogue unavailable");
const page = await response.json() as TemplatePage;
if (!Array.isArray(page.items) || !Number.isSafeInteger(page.total)) throw new Error("Invalid template catalogue");
@@ -163,7 +163,7 @@ export function mountTemplates(root: HTMLElement, options: {
const catalogTimer = setInterval(() => {
if (!active || request || document.visibilityState === 'hidden' || !catalogVersion) return;
const ticket = sequence;
- void fetch('/motion-api/template-catalog?limit=1', { signal: lifetime.signal }).then(response => response.ok ? response.json() : null).then(page => {
+ void fetch('/motion-api/template-catalog?limit=1&locale=' + encodeURIComponent(language.locale), { signal: lifetime.signal }).then(response => response.ok ? response.json() : null).then(page => {
if (!active || lifetime.signal.aborted || request || ticket !== sequence || !page?.catalogVersion) return;
if (page.catalogVersion !== catalogVersion) void load(true);
else if (page.warning !== catalogWarning) updateWarning(page.warning);
@@ -244,6 +244,7 @@ export function mountTemplates(root: HTMLElement, options: {
function suspend() { active = false; if (request) { request.abort(); loaded = false; } clearTimeout(debounce); clearInterval(rotation); configurePlayback(); if (dialog.open) dialog.close(); previewCleanup(); }
return {
updateConnection,
+ setLanguage() { if (dialog.open) dialog.close(); loaded = false; if (active) void load(true); },
showAll() { search.value = ''; chooseCategory(element<HTMLButtonElement>('template-tab-featured')); },
resume() { active = true; if (!loaded) void load(true); clearInterval(rotation); rotation = setInterval(() => { if (active && enabled && !dialog.open && !document.hidden) playback.advance(); }, 4200); configurePlayback(); },
suspend,