[랜돔유닛] 다국어 추가
This commit is contained in:
@@ -220,5 +220,6 @@
|
|||||||
"Removed from My Favorites List": "Aus meiner Favoritenliste entfernt",
|
"Removed from My Favorites List": "Aus meiner Favoritenliste entfernt",
|
||||||
"Watch Live show now?": "(need for transfer) Watch Live show now?",
|
"Watch Live show now?": "(need for transfer) Watch Live show now?",
|
||||||
"If you do not wish to agree to these terms, please proceed to the LG Account.": "(need for transfer) If you do not wish to agree to these terms, please proceed to the LG Account.",
|
"If you do not wish to agree to these terms, please proceed to the LG Account.": "(need for transfer) If you do not wish to agree to these terms, please proceed to the LG Account.",
|
||||||
"If you do not wish to agree to these terms, please proceed to the following link.": "(need for transfer) If you do not wish to agree to these terms, please proceed to the following link."
|
"If you do not wish to agree to these terms, please proceed to the following link.": "(need for transfer) If you do not wish to agree to these terms, please proceed to the following link.",
|
||||||
|
"Click the screen to see more products!": "Klicken Sie auf den Bildschirm, um weitere Produkte zu sehen!"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -220,5 +220,6 @@
|
|||||||
"Removed from My Favorites List": "Removed from My Favorites List",
|
"Removed from My Favorites List": "Removed from My Favorites List",
|
||||||
"Watch Live show now?": "Watch Live show now?",
|
"Watch Live show now?": "Watch Live show now?",
|
||||||
"If you do not wish to agree to these terms, please proceed to the LG Account.": "If you do not wish to agree to these terms, please proceed to the LG Account.",
|
"If you do not wish to agree to these terms, please proceed to the LG Account.": "If you do not wish to agree to these terms, please proceed to the LG Account.",
|
||||||
"If you do not wish to agree to these terms, please proceed to the following link.": "If you do not wish to agree to these terms, please proceed to the following link."
|
"If you do not wish to agree to these terms, please proceed to the following link.": "If you do not wish to agree to these terms, please proceed to the following link.",
|
||||||
|
"Click the screen to see more products!": "Click the screen to see more products!"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -220,5 +220,6 @@
|
|||||||
"Removed from My Favorites List": "Removed from My Favorites List",
|
"Removed from My Favorites List": "Removed from My Favorites List",
|
||||||
"Watch Live show now?": "Watch Live show now?",
|
"Watch Live show now?": "Watch Live show now?",
|
||||||
"If you do not wish to agree to these terms, please proceed to the LG Account.": "If you do not wish to agree to these terms, please proceed to the LG Account.",
|
"If you do not wish to agree to these terms, please proceed to the LG Account.": "If you do not wish to agree to these terms, please proceed to the LG Account.",
|
||||||
"If you do not wish to agree to these terms, please proceed to the following link.": "If you do not wish to agree to these terms, please proceed to the following link."
|
"If you do not wish to agree to these terms, please proceed to the following link.": "If you do not wish to agree to these terms, please proceed to the following link.",
|
||||||
|
"Click the screen to see more products!": "Click the screen to see more products!"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -220,5 +220,6 @@
|
|||||||
"Removed from My Favorites List": "Удалено из Списка Избранного",
|
"Removed from My Favorites List": "Удалено из Списка Избранного",
|
||||||
"Watch Live show now?": "(need for transfer) Watch Live show now?",
|
"Watch Live show now?": "(need for transfer) Watch Live show now?",
|
||||||
"If you do not wish to agree to these terms, please proceed to the LG Account.": "(need for transfer) If you do not wish to agree to these terms, please proceed to the LG Account.",
|
"If you do not wish to agree to these terms, please proceed to the LG Account.": "(need for transfer) If you do not wish to agree to these terms, please proceed to the LG Account.",
|
||||||
"If you do not wish to agree to these terms, please proceed to the following link.": "(need for transfer) If you do not wish to agree to these terms, please proceed to the following link."
|
"If you do not wish to agree to these terms, please proceed to the following link.": "(need for transfer) If you do not wish to agree to these terms, please proceed to the following link.",
|
||||||
|
"Click the screen to see more products!": "Нажмите на экран, чтобы увидеть больше товаров!"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,47 +4,32 @@ import React, {
|
|||||||
useMemo,
|
useMemo,
|
||||||
useRef,
|
useRef,
|
||||||
useState,
|
useState,
|
||||||
} from 'react';
|
} from "react";
|
||||||
|
|
||||||
import classNames from 'classnames';
|
import classNames from "classnames";
|
||||||
import {
|
import { useDispatch, useSelector } from "react-redux";
|
||||||
useDispatch,
|
|
||||||
useSelector,
|
|
||||||
} from 'react-redux';
|
|
||||||
|
|
||||||
import SpotlightContainerDecorator
|
import SpotlightContainerDecorator from "@enact/spotlight/SpotlightContainerDecorator";
|
||||||
from '@enact/spotlight/SpotlightContainerDecorator';
|
import Spottable from "@enact/spotlight/Spottable";
|
||||||
import Spottable from '@enact/spotlight/Spottable';
|
|
||||||
|
|
||||||
import btnPlay from '../../../../assets/images/btn/btn-play-thumb-nor.png';
|
import btnPlay from "../../../../assets/images/btn/btn-play-thumb-nor.png";
|
||||||
import defaultLogoImg
|
import defaultLogoImg from "../../../../assets/images/ic-tab-partners-default@3x.png";
|
||||||
from '../../../../assets/images/ic-tab-partners-default@3x.png';
|
import emptyHorImage from "../../../../assets/images/img-home-banner-empty-hor.png";
|
||||||
import emptyHorImage
|
import emptyVerImage from "../../../../assets/images/img-home-banner-empty-ver.png";
|
||||||
from '../../../../assets/images/img-home-banner-empty-hor.png';
|
import defaultImageItem from "../../../../assets/images/img-thumb-empty-product@3x.png";
|
||||||
import emptyVerImage
|
import liveShow from "../../../../assets/images/tag-liveshow.png";
|
||||||
from '../../../../assets/images/img-home-banner-empty-ver.png';
|
|
||||||
import defaultImageItem
|
|
||||||
from '../../../../assets/images/img-thumb-empty-product@3x.png';
|
|
||||||
import liveShow from '../../../../assets/images/tag-liveshow.png';
|
|
||||||
//import { sendBroadCast } from "../../../actions/commonActions";
|
//import { sendBroadCast } from "../../../actions/commonActions";
|
||||||
import { pushPanel } from '../../../actions/panelActions';
|
import { pushPanel } from "../../../actions/panelActions";
|
||||||
import {
|
import {
|
||||||
finishVideoPreview,
|
finishVideoPreview,
|
||||||
startVideoPlayer,
|
startVideoPlayer,
|
||||||
} from '../../../actions/playActions';
|
} from "../../../actions/playActions";
|
||||||
import CustomImage from '../../../components/CustomImage/CustomImage';
|
import CustomImage from "../../../components/CustomImage/CustomImage";
|
||||||
import useLogService from '../../../hooks/useLogService';
|
import useLogService from "../../../hooks/useLogService";
|
||||||
import usePriceInfo from '../../../hooks/usePriceInfo';
|
import usePriceInfo from "../../../hooks/usePriceInfo";
|
||||||
import {
|
import { LOG_MENU, LOG_TP_NO, panel_names } from "../../../utils/Config";
|
||||||
LOG_MENU,
|
import { $L, formatGMTString } from "../../../utils/helperMethods";
|
||||||
LOG_TP_NO,
|
import css from "./RandomUnit.module.less";
|
||||||
panel_names,
|
|
||||||
} from '../../../utils/Config';
|
|
||||||
import {
|
|
||||||
$L,
|
|
||||||
formatGMTString,
|
|
||||||
} from '../../../utils/helperMethods';
|
|
||||||
import css from './RandomUnit.module.less';
|
|
||||||
|
|
||||||
const SpottableComponent = Spottable("div");
|
const SpottableComponent = Spottable("div");
|
||||||
|
|
||||||
@@ -343,37 +328,37 @@ export default function RandomUnit({
|
|||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (isFocused && !videoError) {
|
if (isFocused && !videoError) {
|
||||||
timerRef.current = setTimeout(
|
timerRef.current = setTimeout(
|
||||||
() =>
|
() =>
|
||||||
dispatch(
|
dispatch(
|
||||||
startVideoPlayer({
|
startVideoPlayer({
|
||||||
showUrl: randomData.showUrl,
|
showUrl: randomData.showUrl,
|
||||||
patnrId: randomData.patnrId,
|
patnrId: randomData.patnrId,
|
||||||
showId: randomData.showId,
|
showId: randomData.showId,
|
||||||
shptmBanrTpNm: randomData.showId
|
shptmBanrTpNm: randomData.showId
|
||||||
? randomData.shptmBanrTpNm
|
? randomData.shptmBanrTpNm
|
||||||
: "MEDIA",
|
: "MEDIA",
|
||||||
lgCatCd: randomData.lgCatCd,
|
lgCatCd: randomData.lgCatCd,
|
||||||
chanId: randomData.brdcChnlId,
|
chanId: randomData.brdcChnlId,
|
||||||
modal: true,
|
modal: true,
|
||||||
modalContainerId: spotlightId,
|
modalContainerId: spotlightId,
|
||||||
modalClassName: css.videoModal,
|
modalClassName: css.videoModal,
|
||||||
})
|
})
|
||||||
),
|
),
|
||||||
1000
|
1000
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
if(!isFocused){
|
if (!isFocused) {
|
||||||
setVideoError(false);
|
setVideoError(false);
|
||||||
dispatch(finishVideoPreview());
|
dispatch(finishVideoPreview());
|
||||||
}
|
}
|
||||||
return () => {
|
return () => {
|
||||||
clearTimeout(timerRef.current);
|
clearTimeout(timerRef.current);
|
||||||
}
|
};
|
||||||
}, [isFocused]);
|
}, [isFocused]);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (isFocused && broadcast?.type === "videoError"){
|
if (isFocused && broadcast?.type === "videoError") {
|
||||||
clearTimeout(timerRef.current);
|
clearTimeout(timerRef.current);
|
||||||
setVideoError(true);
|
setVideoError(true);
|
||||||
dispatch(finishVideoPreview());
|
dispatch(finishVideoPreview());
|
||||||
@@ -459,7 +444,7 @@ export default function RandomUnit({
|
|||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
<p className={css.errorText}>
|
<p className={css.errorText}>
|
||||||
Click the screen to see more products!
|
{$L("Click the screen to see more products!")}
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user