From eae3f119a40a95cf497b2f7347bab3e2718d839b Mon Sep 17 00:00:00 2001 From: AP Solanki <88495030+ateendra24@users.noreply.github.com> Date: Sun, 22 Mar 2026 15:33:43 +0530 Subject: [PATCH] feat: Implement `PlaybackControls` component and add i18n files for common terms in English, Spanish, and Chinese. --- src/components/video-editor/PlaybackControls.tsx | 4 ++-- src/i18n/locales/en/common.json | 4 +++- src/i18n/locales/es/common.json | 4 +++- src/i18n/locales/zh-CN/common.json | 4 +++- 4 files changed, 11 insertions(+), 5 deletions(-) diff --git a/src/components/video-editor/PlaybackControls.tsx b/src/components/video-editor/PlaybackControls.tsx index 5b5217e..061ae5c 100644 --- a/src/components/video-editor/PlaybackControls.tsx +++ b/src/components/video-editor/PlaybackControls.tsx @@ -100,9 +100,9 @@ export default function PlaybackControls({ aria-label={isFullscreen ? t("playback.exitFullscreen") : t("playback.fullscreen")} > {isFullscreen ? ( - + ) : ( - + )} )} diff --git a/src/i18n/locales/en/common.json b/src/i18n/locales/en/common.json index b59f24d..fdc65e6 100644 --- a/src/i18n/locales/en/common.json +++ b/src/i18n/locales/en/common.json @@ -18,7 +18,9 @@ }, "playback": { "play": "Play", - "pause": "Pause" + "pause": "Pause", + "fullscreen": "Fullscreen", + "exitFullscreen": "Exit Fullscreen" }, "locale": { "name": "English", diff --git a/src/i18n/locales/es/common.json b/src/i18n/locales/es/common.json index cfc771f..a6f61e7 100644 --- a/src/i18n/locales/es/common.json +++ b/src/i18n/locales/es/common.json @@ -18,7 +18,9 @@ }, "playback": { "play": "Reproducir", - "pause": "Pausar" + "pause": "Pausar", + "fullscreen": "Pantalla completa", + "exitFullscreen": "Salir de pantalla completa" }, "locale": { "name": "Español", diff --git a/src/i18n/locales/zh-CN/common.json b/src/i18n/locales/zh-CN/common.json index f3aa8b6..9a3cc1c 100644 --- a/src/i18n/locales/zh-CN/common.json +++ b/src/i18n/locales/zh-CN/common.json @@ -18,7 +18,9 @@ }, "playback": { "play": "播放", - "pause": "暂停" + "pause": "暂停", + "fullscreen": "全屏", + "exitFullscreen": "退出全屏" }, "locale": { "name": "中文",