Skip to content

Commit

Permalink
add usages (#973)
Browse files Browse the repository at this point in the history
  • Loading branch information
an-lee authored Aug 15, 2024
1 parent 143e186 commit 79c8d25
Show file tree
Hide file tree
Showing 4 changed files with 232 additions and 140 deletions.
4 changes: 4 additions & 0 deletions enjoy/src/api/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,10 @@ export class Client {
});
}

usages(): Promise<{ label: string; data: number[] }[]> {
return this.api.get("/api/mine/usages");
}

syncAudio(audio: Partial<AudioType>) {
return this.api.post("/api/mine/audios", decamelizeKeys(audio));
}
Expand Down
3 changes: 2 additions & 1 deletion enjoy/src/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -718,5 +718,6 @@
"audioInput": "Audio input",
"textInput": "Text input",
"increasePlaybackRate": "Increase playback rate",
"descreasePlaybackRate": "Descrease playback rate"
"descreasePlaybackRate": "Descrease playback rate",
"usage": "Usage"
}
3 changes: 2 additions & 1 deletion enjoy/src/i18n/zh-CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -718,5 +718,6 @@
"audioInput": "语音输入",
"textInput": "文字输入",
"increasePlaybackRate": "加快播放速度",
"decreasePlaybackRate": "减慢播放速度"
"decreasePlaybackRate": "减慢播放速度",
"usage": "使用情况"
}
Loading

0 comments on commit 79c8d25

Please sign in to comment.