diff --git a/packages/experimental/client-ui-creation-recommendations/src/client/locales.ts b/packages/experimental/client-ui-creation-recommendations/src/client/locales.ts index 18547daafd..daca031238 100644 --- a/packages/experimental/client-ui-creation-recommendations/src/client/locales.ts +++ b/packages/experimental/client-ui-creation-recommendations/src/client/locales.ts @@ -68,3 +68,38 @@ export const zh: Record = { 'not-live-root': '请打开原会话后使用这张卡片', closing: '创建插件正在停止,请等待重新加载后再试', } + +/** Japanese creation and recovery copy. */ +export const ja: Record = { + heading: 'パーソナルページ', location: '追加先', + creationInfo: '作成の仕組みとトークン消費', + creationMethod: 'クリエイターモードで新しいページを作成します。いつでも削除できます。', + creationCost: '作成には時間がかかり、大量のトークンを消費することがあります。', + creationBackground: '「作成」をクリックするとバックグラウンドで開始します。ここで会話を続けられます。', + expandPlan: 'プランをすべて表示', collapsePlan: 'プランを折りたたむ', + 'sidebar-right': '右サイドバー', page: 'セッションタブ', 'sidebar-left': 'グローバルページ', custom: '自分で指定', + 'sidebar-rightHint': 'この会話の横に表示', + pageHint: 'チャットと軌跡の隣に開く', + 'sidebar-leftHint': '左サイドバーから開く', + customHint: '配置したい場所を説明', + customLabel: 'どこに表示しますか?', + customPlaceholder: '例:左サイドバーに全画面カレンダーを開く項目を追加', + create: '作成', starting: '開始しています…', dismiss: '今はしない', retry: '再作成', keep: '保持', undo: '元に戻す', + scope: 'いつでも削除できます', + dismissed: '却下済み', expired: '期限切れ', creating: 'バックグラウンドで作成中', + cancel: '作成をキャンセル', cancelling: 'キャンセルしています…', installing: 'インストール中…', + sourceRetained: '元に戻しても、ソースファイルは元のワークスペースの .dsh-created-plugins/ フォルダーに残ります。', + installed: 'インストール済み', kept: '保持済み', removed: '削除済み', + failed: '作成に失敗しました。再試行してください。', + interrupted: '作成が中断されました。再試行してください。', + unconfirmed: '結果を確認できません。再試行して確認してください。', + 'invalid-location': '場所を選択するか、1,000文字以内で説明してください。', + 'restart-required': '変更は保存されました。適用するにはDSHを再起動してください。', + overridden: '別の設定がこの変更を上書きしています。', cancelled: 'キャンセル済み', + transport: '結果を確認できませんでした。再接続してカードを確認してから再試行してください。', + unknown: 'この提案は利用できなくなりました。', + unavailable: 'この操作は利用できません。プラグイン画面でプラグインを確認してください。', + 'access-denied': 'この接続ではプラグインを変更できません。', + 'not-live-root': 'このカードを使うには元の会話を開いてください。', + closing: '作成プラグインが停止中です。再読み込み後に再試行してください。', +} diff --git a/packages/experimental/client-ui-creation-recommendations/src/client/mount.ts b/packages/experimental/client-ui-creation-recommendations/src/client/mount.ts index 58f55c650f..2da8172664 100644 --- a/packages/experimental/client-ui-creation-recommendations/src/client/mount.ts +++ b/packages/experimental/client-ui-creation-recommendations/src/client/mount.ts @@ -10,7 +10,7 @@ import type { TypertRemoteContribution } from '@deepseek-ai/dsh-typert-protocol' import type {} from '@deepseek-ai/dsh-experimental-creation-recommendations/types' import { RecommendationTail, type RecommendationTailInjected } from './Card.tsx' import { recommendationDefinition } from './definition.ts' -import { en, zh, type RecommendationKey } from './locales.ts' +import { en, ja, zh, type RecommendationKey } from './locales.ts' import { createCreationInfoStore } from './info-store.ts' declare module '@deepseek-ai/dsh-client-ui-slots' { @@ -37,7 +37,7 @@ export async function mountRecommendations(ctx: Context, contribution: TypertRem function registerUi(ctx: Context): void { const infoDismissed = createCreationInfoStore() - ctx.effect(() => ctx.locale.register('creationRecommendations', { en, zh }), 'creation-recommendations: locale') + ctx.effect(() => ctx.locale.register('creationRecommendations', { en, zh, ja }), 'creation-recommendations: locale') ctx.effect(() => ctx.uiConversation.events.register(recommendationDefinition), 'creation-recommendations: chat') ctx.slots.inject('conversation.chat.turnTail', () => ctx.slots.register({ name: 'conversation.chat.turnTail', id: 'creation-recommendation', locale: 'creationRecommendations',