feat(i18n): integrate i18next for internationalization support and add initial translation setup
This commit is contained in:
@@ -625,10 +625,16 @@ const getMainStatLabel = (target: 'necklace' | 'ring' | 'boots', value: MainStat
|
||||
}
|
||||
}, [setPickerOpen]);
|
||||
|
||||
const resetFilters = () => {
|
||||
setStatFilters(emptyFilters);
|
||||
const resetSetsAndAttrs = () => {
|
||||
setSetFilters(emptySetFilters);
|
||||
setStatFilters(emptyFilters);
|
||||
setMainStatFilters({necklace: 'All', ring: 'All', boots: 'All'});
|
||||
setResults([]);
|
||||
setSelectedResult(null);
|
||||
setTotalCombos(0);
|
||||
};
|
||||
|
||||
const resetPreferences = () => {
|
||||
setWeightValues({
|
||||
atk: 3,
|
||||
def: 3,
|
||||
@@ -1000,18 +1006,21 @@ const getMainStatLabel = (target: 'necklace' | 'ring' | 'boots', value: MainStat
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<Button icon={<ReloadOutlined/>} onClick={loadLatestData} loading={loading}>
|
||||
重新加载数据
|
||||
</Button>
|
||||
<div style={{display: 'flex', gap: 8}}>
|
||||
<Button icon={<ReloadOutlined/>} onClick={loadLatestData} loading={loading}>
|
||||
重新加载数据
|
||||
</Button>
|
||||
<Button icon={<ReloadOutlined/>} onClick={resetSetsAndAttrs}>
|
||||
{'\u91cd\u7f6e\u5957\u88c5'}
|
||||
</Button>
|
||||
<Button icon={<FilterOutlined/>} onClick={resetPreferences}>
|
||||
{'\u91cd\u7f6e\u504f\u597d'}
|
||||
</Button>
|
||||
<Button type="primary" icon={<AppstoreOutlined/>} onClick={buildResults}>
|
||||
{'\u5f00\u59cb\u914d\u88c5'}
|
||||
</Button>
|
||||
</div>
|
||||
</Col>
|
||||
<div style={{position: 'absolute', right: 24, bottom: 16, display: 'flex', gap: 8}}>
|
||||
<Button type="primary" icon={<AppstoreOutlined/>} onClick={buildResults}>
|
||||
开始配装
|
||||
</Button>
|
||||
<Button icon={<FilterOutlined/>} onClick={resetFilters}>
|
||||
重置筛选
|
||||
</Button>
|
||||
</div>
|
||||
</Row>
|
||||
</Card>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user