fix: vendor options display by locales

This commit is contained in:
jialin
2026-06-03 18:28:31 +08:00
committed by jialin
parent 2bb04a419d
commit dc04529f5b
8 changed files with 81 additions and 26 deletions
+4 -2
View File
@@ -60,12 +60,14 @@ const GPUServiceTemplates: React.FC = () => {
const manufacturerOptions = useMemo(
() => [
...Object.values(GPUsConfigs).map((item) => ({
label: item.label,
label: item.locales.locale
? intl.formatMessage({ id: item.locales.label })
: item.locales.label,
value: item.gpuVendor as string
})),
{ label: 'CPU', value: 'cpu' }
],
[]
[intl]
);
const handleFilterByManufacturer = (value: string) => {