chore: languages settings

This commit is contained in:
jialin
2024-06-24 14:00:06 +08:00
parent de96c3d81d
commit 64683fdeb6
32 changed files with 417 additions and 156 deletions
+9 -3
View File
@@ -16,6 +16,7 @@ export function getRightRenderContent(opts: {
setInitialState: any;
}) {
console.log('runtimeConfig==', opts.runtimeConfig, opts);
// const intl = useIntl();
if (opts.runtimeConfig.rightRender) {
return opts.runtimeConfig.rightRender(
opts.initialState,
@@ -64,7 +65,10 @@ export function getRightRenderContent(opts: {
icon={
<span style={{ fontSize: '12px' }}>
<GlobalOutlined />
<span className="m-l-8"></span>
<span className="m-l-8">
{/* {FormattedMessage({ id: 'common.settings.language' })} */}
Language
</span>
</span>
}
></SelectLang>
@@ -83,7 +87,8 @@ export function getRightRenderContent(opts: {
label: (
<>
<SettingOutlined />
{/* {intl.formatMessage({ id: 'common.button.settings' })} */}
Settings
</>
),
onClick: () => {
@@ -107,7 +112,8 @@ export function getRightRenderContent(opts: {
label: (
<>
<LogoutOutlined />
退
{/* {intl.formatMessage({ id: 'common.button.logout' })} */}
Logout
</>
),
onClick: () => {