mirror of
https://github.com/mediacms-io/mediacms.git
synced 2025-11-22 06:17:58 -05:00
feat: translations support
This commit is contained in:
@@ -2,6 +2,7 @@ import React, { useState } from 'react';
|
||||
import { usePopup } from '../../utils/hooks/';
|
||||
import { CircleIconButton, MaterialIcon, NavigationContentApp, PopupMain } from '../_shared/';
|
||||
import { PlaylistsSelection } from '../playlists-selection/PlaylistsSelection';
|
||||
import { translateString } from '../../utils/helpers/';
|
||||
|
||||
function mediaSavePopupPages(onTriggerPopupClose) {
|
||||
return {
|
||||
@@ -39,7 +40,7 @@ export function MediaSaveButton(props) {
|
||||
<CircleIconButton type="span">
|
||||
<MaterialIcon type="playlist_add" />
|
||||
</CircleIconButton>
|
||||
<span>SAVE</span>
|
||||
<span>{translateString("SAVE")}</span>
|
||||
</button>
|
||||
</PopupTrigger>
|
||||
|
||||
|
||||
@@ -3,6 +3,7 @@ import { usePopup } from '../../utils/hooks/';
|
||||
import { CircleIconButton, MaterialIcon, NavigationContentApp, PopupMain } from '../_shared/';
|
||||
import { MediaShareEmbed } from './MediaShareEmbed';
|
||||
import { MediaShareOptions } from './MediaShareOptions';
|
||||
import { translateString } from '../../utils/helpers/';
|
||||
|
||||
function mediaSharePopupPages() {
|
||||
return {
|
||||
@@ -54,7 +55,7 @@ export function MediaShareButton(props) {
|
||||
<CircleIconButton type="span">
|
||||
<MaterialIcon type="share" />
|
||||
</CircleIconButton>
|
||||
<span>SHARE</span>
|
||||
<span>{translateString("SHARE")}</span>
|
||||
</button>
|
||||
</PopupTrigger>
|
||||
|
||||
|
||||
@@ -4,6 +4,7 @@ import { SiteContext } from '../../utils/contexts/';
|
||||
import { MediaPageStore } from '../../utils/stores/';
|
||||
import { formatInnerLink } from '../../utils/helpers/';
|
||||
import { CircleIconButton, MaterialIcon, NavigationContentApp, NavigationMenuList, PopupMain } from '../_shared/';
|
||||
import { translateString } from '../../utils/helpers/';
|
||||
|
||||
function downloadOptionsList() {
|
||||
const media_data = MediaPageStore.get('media-data');
|
||||
@@ -71,7 +72,7 @@ export function VideoMediaDownloadLink(props) {
|
||||
<CircleIconButton type="span">
|
||||
<MaterialIcon type="arrow_downward" />
|
||||
</CircleIconButton>
|
||||
<span>DOWNLOAD</span>
|
||||
<span>{translateString("DOWNLOAD")}</span>
|
||||
</button>
|
||||
</PopupTrigger>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user