diff --git a/frontend/src/_locales/ja/main.json b/frontend/src/_locales/ja/main.json index 9c34510..0302694 100644 --- a/frontend/src/_locales/ja/main.json +++ b/frontend/src/_locales/ja/main.json @@ -282,5 +282,18 @@ "Play": "再生", "New Track": "新規トラック", "Select a track to preview the content": "トラックを選択して内容をプレビュー", - "Save to generation area": "生成エリアに保存" + "Save to generation area": "生成エリアに保存", + "Piano": "ピアノ", + "Percussion": "パーカッション", + "Drum": "ドラム", + "Tuba": "チューバ", + "Marimba": "マリンバ", + "Bass": "ベース", + "Guitar": "ギター", + "Violin": "バイオリン", + "Trumpet": "トランペット", + "Sax": "サックス", + "Flute": "フルート", + "Lead": "リード", + "Pad": "パッド" } \ No newline at end of file diff --git a/frontend/src/_locales/zh-hans/main.json b/frontend/src/_locales/zh-hans/main.json index 12bf9a4..3d3d895 100644 --- a/frontend/src/_locales/zh-hans/main.json +++ b/frontend/src/_locales/zh-hans/main.json @@ -282,5 +282,18 @@ "Play": "播放", "New Track": "新建音轨", "Select a track to preview the content": "选择一个音轨以预览内容", - "Save to generation area": "保存到生成区" + "Save to generation area": "保存到生成区", + "Piano": "钢琴", + "Percussion": "打击乐", + "Drum": "鼓", + "Tuba": "大号", + "Marimba": "马林巴", + "Bass": "贝斯", + "Guitar": "吉他", + "Violin": "小提琴", + "Trumpet": "小号", + "Sax": "萨克斯", + "Flute": "长笛", + "Lead": "主音", + "Pad": "和音" } \ No newline at end of file diff --git a/frontend/src/pages/AudiotrackManager/AudiotrackEditor.tsx b/frontend/src/pages/AudiotrackManager/AudiotrackEditor.tsx index 1e29183..09f672c 100644 --- a/frontend/src/pages/AudiotrackManager/AudiotrackEditor.tsx +++ b/frontend/src/pages/AudiotrackManager/AudiotrackEditor.tsx @@ -29,6 +29,7 @@ import { toast } from 'react-toastify'; import { ToastOptions } from 'react-toastify/dist/types'; import { flushMidiRecordingContent, refreshTracksTotalTime } from '../../utils'; import { PlayNote } from '../../../wailsjs/go/backend_golang/App'; +import { t } from 'i18next'; const snapValue = 25; const minimalMoveTime = 8; // 1000/125=8ms wait_events=125 @@ -63,7 +64,7 @@ const displayCurrentInstrumentType = () => { className={commonStore.instrumentType === i ? 'text-blue-600' : ''} weight={commonStore.instrumentType === i ? 'bold' : 'regular'} size={commonStore.instrumentType === i ? 300 : 100} - >{name})} + >{t(name)})} ; const options: ToastOptions = { type: 'default',