From 572762b31c2889bbd0af81e68b2dbdb210d5fbe7 Mon Sep 17 00:00:00 2001 From: Jason Chuang Date: Sun, 8 Mar 2026 01:24:12 +0800 Subject: [PATCH] add i18n --- src/components/iAmSmartButton.js | 5 +++-- src/translations/en.json | 1 + src/translations/zh-CN.json | 1 + src/translations/zh-HK.json | 1 + 4 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/components/iAmSmartButton.js b/src/components/iAmSmartButton.js index ab5a01e..3ae9e0c 100644 --- a/src/components/iAmSmartButton.js +++ b/src/components/iAmSmartButton.js @@ -1,5 +1,6 @@ // material-ui import {useState, useEffect} from 'react'; +import { useIntl } from 'react-intl'; import iAmSmartICon from 'assets/images/icons/icon_iAmSmart.png'; import { Button, @@ -9,7 +10,7 @@ import { // ==============================|| EVENT TABLE ||============================== // export function IAmSmartButton({ label, onClickFun, fullWidth }) { - + const intl = useIntl(); const [_label, set_label] = useState(""); useEffect(()=>{ @@ -23,7 +24,7 @@ export function IAmSmartButton({ label, onClickFun, fullWidth }) { } return ( -