mirror of
https://github.com/woodchen-ink/clash-and-dashboard.git
synced 2025-07-18 14:01:56 +08:00
Fix: format language value
This commit is contained in:
parent
68af11cbff
commit
69bcbe07ee
@ -119,7 +119,7 @@ class Settings extends React.Component<I18nProps, {}> {
|
||||
<span className="label">{t('labels.language')}</span>
|
||||
</Col>
|
||||
<Col span={7} className="value-column">
|
||||
<ButtonSelect options={this.languageOptions} value={lng} onSelect={this.changeLanguage} />
|
||||
<ButtonSelect options={this.languageOptions} value={lng.replace(/-.+$/, '')} onSelect={this.changeLanguage} />
|
||||
</Col>
|
||||
</Row>
|
||||
<Row gutter={24} align="middle">
|
||||
|
Loading…
x
Reference in New Issue
Block a user