In the following I show the tooltip that I want to change, the control shown is an upload (Ant Design) and I want to modify the tooltip
Thank you very much
JavaScript
x
38
38
1
const { Dragger } = Upload;
2
3
const props = {
4
name: "file",
5
multiple: true,
6
action: "https://www.mocky.io/v2/5cc8019d300000980a055e76",
7
onChange(info) {
8
const { status } = info.file;
9
if (status !== "uploading") {
10
console.log(info.file, info.fileList);
11
}
12
if (status === "done") {
13
message.success(`${info.file.name} file uploaded successfully.`);
14
} else if (status === "error") {
15
message.error(`${info.file.name} file upload failed.`);
16
}
17
}
18
};
19
20
return (
21
<>
22
<Dragger {props}>
23
<p className="ant-upload-drag-icon">
24
<InboxOutlined />
25
</p>
26
<p className="ant-upload-text">
27
Haga clic o arrastre el archivo a esta área para cargar
28
</p>
29
<p className="ant-upload-hint">
30
Soporte para una carga única o masiva.
31
</p>
32
</Dragger>
33
<Button type="primary" style={{ marginTop: 16 }}>
34
Iniciar Carga
35
</Button>
36
</>
37
);
38
Advertisement
Answer
It looks like the only way without editing their source code is using ConfigProvider
to match your localization. I assume that’s what you want to modify is convert the text to Spanish.