Skip to content

Commit 67de5d3

Browse files
refactor: update translations
1 parent 1bded61 commit 67de5d3

3 files changed

Lines changed: 40 additions & 40 deletions

File tree

apps/demo/src/Views/Ui/components/Message.tsx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,37 +11,37 @@ export const MessageDemo = () => {
1111
const propertiesData = [
1212
{
1313
default: "false",
14-
description: t("message.table.propDescription.enableClose"),
14+
description: t("message.propertiesDescription.enableClose"),
1515
prop: "enableClose",
1616
type: "boolean",
1717
},
1818
{
1919
default: "-",
20-
description: t("message.table.propDescription.icon"),
20+
description: t("message.propertiesDescription.icon"),
2121
prop: "icon",
2222
type: "string | ReactNode",
2323
},
2424
{
2525
default: "-",
26-
description: t("message.table.propDescription.message"),
26+
description: t("message.propertiesDescription.message"),
2727
prop: "message",
2828
type: "string | string[] | ReactNode",
2929
},
3030
{
3131
default: "-",
32-
description: t("message.table.propDescription.onClose"),
32+
description: t("message.propertiesDescription.onClose"),
3333
prop: "onClose",
3434
type: "() => void",
3535
},
3636
{
3737
default: "info",
38-
description: t("message.table.propDescription.severity"),
38+
description: t("message.propertiesDescription.severity"),
3939
prop: "severity",
4040
type: `"info" | "success" | "warning" | "danger"`,
4141
},
4242
{
4343
default: "true",
44-
description: t("message.table.propDescription.showIcon"),
44+
description: t("message.propertiesDescription.showIcon"),
4545
prop: "showIcon",
4646
type: "boolean",
4747
},
@@ -164,19 +164,19 @@ export const MessageDemo = () => {
164164
columns={[
165165
{
166166
accessorKey: "prop",
167-
header: t("message.table.header.properties"),
167+
header: t("propertiesTable.header.properties"),
168168
},
169169
{
170170
accessorKey: "type",
171-
header: t("message.table.header.type"),
171+
header: t("propertiesTable.header.type"),
172172
},
173173
{
174174
accessorKey: "default",
175-
header: t("message.table.header.default"),
175+
header: t("propertiesTable.header.default"),
176176
},
177177
{
178178
accessorKey: "description",
179-
header: t("message.table.header.description"),
179+
header: t("propertiesTable.header.description"),
180180
},
181181
]}
182182
data={propertiesData}

apps/demo/src/locales/en/ui.json

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,14 @@
55
"common": {
66
"usage": "To use the {{component}} component, simply import it into your React file:"
77
},
8+
"propertiesTable": {
9+
"header": {
10+
"default": "Default",
11+
"description": "Description",
12+
"properties": "Properties",
13+
"type": "Type"
14+
}
15+
},
816
"headers": {
917
"buttons": "Buttons",
1018
"data": "Data",
@@ -227,21 +235,13 @@
227235
"warning": "Warning message"
228236
},
229237
"subtitle": "The Message component displays contextual messages with optional icons and a closable action. It supports custom slots, making it flexible for various use cases.",
230-
"table": {
231-
"header": {
232-
"default": "Default",
233-
"description": "Description",
234-
"properties": "Properties",
235-
"type": "Type"
236-
},
237-
"propDescription": {
238-
"enableClose": "Displays a close icon if true, allowing the message to be dismissed.",
239-
"icon": "Icon to display alongside the message.",
240-
"message": "The message text to display in the component.",
241-
"onClose": "Function to be called when the message is closed.",
242-
"severity": "Defines the styling severity of the message. Defaults to 'info'.",
243-
"showIcon": "Show default icon based on severity or custom icon if provided."
244-
}
238+
"propertiesDescription": {
239+
"enableClose": "Displays a close icon if true, allowing the message to be dismissed.",
240+
"icon": "Icon to display alongside the message.",
241+
"message": "The message text to display in the component.",
242+
"onClose": "Function to be called when the message is closed.",
243+
"severity": "Defines the styling severity of the message. Defaults to 'info'.",
244+
"showIcon": "Show default icon based on severity or custom icon if provided."
245245
},
246246
"title": "Message",
247247
"usage": {

apps/demo/src/locales/fr/ui.json

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,14 @@
55
"common": {
66
"usage": "To use the {{component}} component, simply import it into your React file (fr):"
77
},
8+
"propertiesTable": {
9+
"header": {
10+
"default": "Default (fr)",
11+
"description": "Description (fr)",
12+
"properties": "Properties (fr)",
13+
"type": "Type (fr)"
14+
}
15+
},
816
"headers": {
917
"buttons": "Buttons (fr)",
1018
"data": "Data (fr)",
@@ -227,21 +235,13 @@
227235
"warning": "Warning message (fr)"
228236
},
229237
"subtitle": "The Message component displays contextual messages with optional icons and a closable action. It supports custom slots, making it flexible for various use cases. (fr)",
230-
"table": {
231-
"header": {
232-
"default": "Default (fr)",
233-
"description": "Description (fr)",
234-
"properties": "Properties (fr)",
235-
"type": "Type (fr)"
236-
},
237-
"propDescription": {
238-
"enableClose": "Displays a close icon if true, allowing the message to be dismissed. (fr)",
239-
"icon": "Icon to display alongside the message. (fr)",
240-
"message": "The message text to display in the component. (fr)",
241-
"onClose": "Function to be called when the message is closed. (fr)",
242-
"severity": "Defines the styling severity of the message. Defaults to 'info'. (fr)",
243-
"showIcon": "Show default icon based on severity or custom icon if provided. (fr)"
244-
}
238+
"propertiesDescription": {
239+
"enableClose": "Displays a close icon if true, allowing the message to be dismissed. (fr)",
240+
"icon": "Icon to display alongside the message. (fr)",
241+
"message": "The message text to display in the component. (fr)",
242+
"onClose": "Function to be called when the message is closed. (fr)",
243+
"severity": "Defines the styling severity of the message. Defaults to 'info'. (fr)",
244+
"showIcon": "Show default icon based on severity or custom icon if provided. (fr)"
245245
},
246246
"title": "Message (fr)",
247247
"usage": {

0 commit comments

Comments
 (0)