Skip to content

Commit

Permalink
feat: 添加author信息展示
Browse files Browse the repository at this point in the history
  • Loading branch information
liuxian496 committed Jan 1, 2024
1 parent d0b48a7 commit bc8fbe1
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/global/enUS.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
const enUS = {
startSpeaking: 'Start speaking:',
stopSpeaking: 'Stop speaking:',
startSpeaking: 'Start Speaking:',
stopSpeaking: 'Stop Speaking:',
roomId: 'Room Id:',
volume: 'Volume:',
language: 'Language:',
roomId_placeholder: 'Please input room id',
connect: 'connect',
disconnect: 'disconnect',
author:'Author:Ford'
};

export default enUS;
1 change: 1 addition & 0 deletions src/global/i18n.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ export interface Lexicon {
roomId_placeholder: string;
connect: string;
disconnect: string;
author: string;
}
1 change: 1 addition & 0 deletions src/global/zhCN.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ const zhCN = {
roomId_placeholder: '请输入房间号',
connect: '连接',
disconnect: '断开连接',
author:'作者:弗特马克贝因'
};

export default zhCN;
6 changes: 6 additions & 0 deletions src/page/main/mainView.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,9 @@ $component-cls: 'main';
height: 100px;
}
}

.copyright {
position: fixed;
right: 5%;
bottom: 5%;
}
1 change: 1 addition & 0 deletions src/page/main/mainView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ export default function MainView() {
</Button>
)}
</div>
<div className="copyright">{i18N.author}</div>
</>
);
}

0 comments on commit bc8fbe1

Please sign in to comment.