mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-02-12 19:22:28 +00:00
Add pt and en translations for gallery-slider
This commit is contained in:
parent
de1d4c347f
commit
77b975d456
3 changed files with 7 additions and 5 deletions
|
@ -96,7 +96,8 @@
|
|||
"dont_show_it_again": "Don't show it again",
|
||||
"copy_to_clipboard": "Copy",
|
||||
"copied_to_clipboard": "Copied",
|
||||
"got_it": "Got it"
|
||||
"got_it": "Got it",
|
||||
"gallery": "Videos and screenshots"
|
||||
},
|
||||
"activation": {
|
||||
"title": "Activate Hydra",
|
||||
|
|
|
@ -92,7 +92,8 @@
|
|||
"dont_show_it_again": "Não mostrar novamente",
|
||||
"copy_to_clipboard": "Copiar",
|
||||
"copied_to_clipboard": "Copiado",
|
||||
"got_it": "Entendi"
|
||||
"got_it": "Entendi",
|
||||
"gallery": "Videos e capturas"
|
||||
},
|
||||
"activation": {
|
||||
"title": "Ativação",
|
||||
|
|
|
@ -47,15 +47,15 @@ export function GallerySlider({ gameDetails }: GallerySliderProps) {
|
|||
<>
|
||||
{gameDetails?.screenshots && (
|
||||
<div className={styles.gallerySliderContainer}>
|
||||
<h2 className={styles.gallerySliderTitle}>{t('Videos and screenshots')}</h2>
|
||||
<h2 className={styles.gallerySliderTitle}>{t('gallery')}</h2>
|
||||
<div className={styles.gallerySliderAnimationContainer}>
|
||||
{gameDetails.movies.map((video: SteamMovies) => (
|
||||
<video controls className={styles.gallerySliderMedia} poster={video.thumbnail} style={{translate: `${-100 * mediaIndex}%`}}>
|
||||
<video controls className={styles.gallerySliderMedia} poster={video.thumbnail} style={{ translate: `${-100 * mediaIndex}%` }}>
|
||||
<source src={video.webm.max.replace('http', 'https')} />
|
||||
</video>
|
||||
))}
|
||||
{gameDetails.screenshots.map((image: SteamScreenshot) => (
|
||||
<img className={styles.gallerySliderMedia} src={image.path_full} style={{translate: `${ -100 * mediaIndex}%`}}/>
|
||||
<img className={styles.gallerySliderMedia} src={image.path_full} style={{ translate: `${-100 * mediaIndex}%` }} />
|
||||
))}
|
||||
</div>
|
||||
<button onClick={showPrevImage} className={styles.gallerySliderButton} style={{ left: 0 }}><ChevronLeftIcon className={styles.gallerySliderIcons} /></button>
|
||||
|
|
Loading…
Reference in a new issue