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