mirror of
https://github.com/logto-io/logto.git
synced 2024-12-16 20:26:19 -05:00
refactor(console): title i18n (#315)
This commit is contained in:
parent
ab15ee8555
commit
5dcf1b92f3
3 changed files with 6 additions and 1 deletions
|
@ -1,15 +1,18 @@
|
|||
import React from 'react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
|
||||
import logo from '@/assets/images/logo.svg';
|
||||
|
||||
import * as styles from './index.module.scss';
|
||||
|
||||
const Topbar = () => {
|
||||
const { t } = useTranslation();
|
||||
|
||||
return (
|
||||
<div className={styles.topbar}>
|
||||
<img src={logo} />
|
||||
<div className={styles.line} />
|
||||
<div className={styles.text}>Admin Console</div>
|
||||
<div className={styles.text}>{t('admin_console.title')}</div>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
|
|
@ -13,6 +13,7 @@ const translation = {
|
|||
have_account: 'Already have an account?',
|
||||
},
|
||||
admin_console: {
|
||||
title: 'Admin Console',
|
||||
tab_sections: {
|
||||
overview: 'Overview',
|
||||
resource_management: 'Resource Management',
|
||||
|
|
|
@ -15,6 +15,7 @@ const translation = {
|
|||
have_account: '已经有账户?',
|
||||
},
|
||||
admin_console: {
|
||||
title: '管理面板',
|
||||
tab_sections: {
|
||||
overview: '概览',
|
||||
resource_management: '资源管理',
|
||||
|
|
Loading…
Reference in a new issue