-
Audio Transform>} />
+ {t('audioTransform.title')}>} />
@@ -395,14 +396,14 @@ function AudioInput({ label, help, file, onChange }) {
{hasFile ? (
{file.name}
-
+
) : (
<>
-
Drop a file here or
+
{t('audioTransform.input.uploadDescription')}
>
)}
@@ -413,23 +414,23 @@ function AudioInput({ label, help, file, onChange }) {
{!cap.supported && (
- Microphone capture is unavailable in this browser.
+ {t('audioTransform.input.microphoneUnavailable')}
)}
{cap.supported && (
<>
{!cap.recording && !recordPending && (
)}
{cap.recording && (
)}
{recordPending && !cap.recording && (
-
Encoding…
+
{t('audioTransform.input.encoding')}
)}
{cap.error && (
@@ -439,7 +440,7 @@ function AudioInput({ label, help, file, onChange }) {
{hasFile && !cap.recording && (
{file.name}
-
+
)}
>
diff --git a/core/http/react-ui/src/pages/Sound.jsx b/core/http/react-ui/src/pages/Sound.jsx
index f87752916..4ddbbbded 100644
--- a/core/http/react-ui/src/pages/Sound.jsx
+++ b/core/http/react-ui/src/pages/Sound.jsx
@@ -10,8 +10,10 @@ import MediaHistory from '../components/MediaHistory'
import WaveformPlayer from '../components/audio/WaveformPlayer'
import { soundApi } from '../utils/api'
import { useMediaHistory } from '../hooks/useMediaHistory'
+import { useTranslation } from 'react-i18next'
export default function Sound() {
+ const { t } = useTranslation('media')
const { model: urlModel } = useParams()
const { addToast } = useOutletContext()
const [model, setModel] = useState(urlModel || '')
@@ -79,63 +81,63 @@ export default function Sound() {
return (
-
Sound Generation>} />
+ {t('sound.title')}>} />
@@ -163,7 +165,7 @@ export default function Sound() {
) : (
-
Generated sound will appear here
+
{t('sound.empty')}
)}