Skip to content

Commit f1db9fb

Browse files
author
mebtte
committed
i18n improve
1 parent c78d7b8 commit f1db9fb

File tree

5 files changed

+5
-4
lines changed

5 files changed

+5
-4
lines changed

Diff for: global.d.ts renamed to apps/pwa/src/asset.d.ts

-3
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,3 @@ declare module '*.png' {
1212
const value: string;
1313
export default value;
1414
}
15-
16-
type AsyncReturnType<T extends (...args: unknown[]) => Promise<unknown>> =
17-
T extends (...args: unknown[]) => infer P ? Awaited<P> : unknown;

Diff for: apps/pwa/src/custom.d.ts

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
type AsyncReturnType<T extends (...args: unknown[]) => Promise<unknown>> =
2+
T extends (...args: unknown[]) => infer P ? Awaited<P> : unknown;

Diff for: apps/pwa/src/i18n/en_us.ts

+1
Original file line numberDiff line numberDiff line change
@@ -219,4 +219,5 @@ export default {
219219
playqueue: 'playqueue',
220220
clear_playlist_question: 'are you sure to clear playlist ?',
221221
no_music_is_playing: 'no music is playing',
222+
head_of_playqueue_tips: 'it is the first of playqueue already',
222223
};

Diff for: apps/pwa/src/i18n/zh_hans.ts

+1
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,7 @@ const zhCN: {
207207
playqueue: '播放队列',
208208
clear_playlist_question: '确定清空播放列表吗?',
209209
no_music_is_playing: '暂无音乐正在播放',
210+
head_of_playqueue_tips: '已经是播放列表的第一首了',
210211
};
211212

212213
export default zhCN;

Diff for: apps/pwa/src/pages/player/use_playqueue.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export default (playlist: MusicWithSingerAliases[]) => {
1616
() =>
1717
setCurrentPosition((i) => {
1818
if (i <= 0) {
19-
notice.error('已经是播放队列的第一首');
19+
notice.error(t('head_of_playqueue_tips'));
2020
return i;
2121
}
2222
return i - 1;

0 commit comments

Comments
 (0)