Commit e28133d dashdashzako
committed
1 parent d2fe4ab commit e28133d Copy full SHA for e28133d
File tree 5 files changed +12
-8
lines changed
5 files changed +12
-8
lines changed Original file line number Diff line number Diff line change 32
32
</ div >
33
33
</ noscript >
34
34
35
- < main id ="root "> </ main >
35
+ < div id ="root "> </ div >
36
36
37
37
< script >
38
38
window . loggerEndpoint = 'http://localhost:3001/api/logs' ;
Original file line number Diff line number Diff line change 1
1
{
2
2
"additional-info.title" : " Additional information" ,
3
+ "application.label" : " Aiana MOOC player" ,
3
4
"button.toggle.off" : " off" ,
4
5
"button.toggle.on" : " on" ,
5
6
"controls.add_bookmark" : " Add bookmark" ,
Original file line number Diff line number Diff line change 1
1
{
2
2
"additional-info.title" : " Additional information" ,
3
+ "application.label" : " Lecteur de MOOC Aiana" ,
3
4
"button.toggle.off" : " non" ,
4
5
"button.toggle.on" : " oui" ,
5
6
"controls.add_bookmark" : " Ajouter un signet" ,
Original file line number Diff line number Diff line change @@ -22,8 +22,9 @@ import MediaPlayer from './media/MediaPlayer';
22
22
import MediaPlayerControls from './media/MediaPlayerControls' ;
23
23
import TimeSpent from './time-management/TimeSpent' ;
24
24
import InteractiveTranscript from './transcript/Transcript' ;
25
+ import { useTranslation } from 'react-i18next' ;
25
26
26
- const StyledDiv = styled . div `
27
+ const Main = styled . main `
27
28
height: 100%;
28
29
width: 100%;
29
30
max-height: 100%;
@@ -64,6 +65,7 @@ function byName(name: string): Filter {
64
65
65
66
function Player ( props : IPlayerProps ) {
66
67
const [ isDraggable , setDraggable ] = useState ( true ) ;
68
+ const [ t ] = useTranslation ( ) ;
67
69
68
70
const { additionalInformationText, widgets, updateWidgetHandler } = props ;
69
71
@@ -78,7 +80,7 @@ function Player(props: IPlayerProps) {
78
80
const transcriptWidget = widgets . find ( byName ( WIDGET_ID_TRANSCRIPT ) ) ;
79
81
80
82
return (
81
- < StyledDiv >
83
+ < Main aria-label = { t ( 'application.label' ) } >
82
84
< div className = "aip-widgets" >
83
85
{ chaptersWidget && chaptersWidget . visible && (
84
86
< ChaptersMenu
@@ -146,7 +148,7 @@ function Player(props: IPlayerProps) {
146
148
</ div >
147
149
< TimelineBar display = { false } />
148
150
< MediaPlayerControls />
149
- </ StyledDiv >
151
+ </ Main >
150
152
) ;
151
153
}
152
154
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ interface IDispatchProps {
33
33
34
34
interface IAiana extends IStateProps , IDispatchProps { }
35
35
36
- const StyledDiv = styled . div `
36
+ const Div = styled . div `
37
37
background-color: ${ ( props ) => props . theme . bg } ;
38
38
color: ${ ( props ) => props . theme . fg } ;
39
39
@@ -101,7 +101,7 @@ function Aiana(props: IAiana) {
101
101
102
102
return (
103
103
< ThemeProvider theme = { themes [ theme ] } >
104
- < StyledDiv
104
+ < Div
105
105
className = { classNames ( 'aip-app' , {
106
106
'aip-app__fullscreen' : isDocumentFullscreen ( )
107
107
} ) }
@@ -111,7 +111,7 @@ function Aiana(props: IAiana) {
111
111
textTransform : fontUppercase ? 'uppercase' : 'none'
112
112
} }
113
113
>
114
- < Suspense fallback = { < Loader text = "Media player is loading." /> } >
114
+ < Suspense fallback = { < Loader /> } >
115
115
< SvgFilters />
116
116
< div
117
117
className = "aip-player-wrapper"
@@ -124,7 +124,7 @@ function Aiana(props: IAiana) {
124
124
</ MediaContextProvider >
125
125
</ div >
126
126
</ Suspense >
127
- </ StyledDiv >
127
+ </ Div >
128
128
</ ThemeProvider >
129
129
) ;
130
130
}
You can’t perform that action at this time.
0 commit comments