Selaa lähdekoodia

translation of BtnExtandedAction

AlexiCauvin 5 vuotta sitten
vanhempi
commit
4792a7dab0

+ 6 - 1
frontend/i18next.scanner/en/translation.json Näytä tiedosto

@@ -9,5 +9,10 @@
9 9
   "Create in folder...": "Create in folder...",
10 10
   "Search...": "Search...",
11 11
   "Create a workspace": "Create a workspace",
12
-  "Title": "Title"
12
+  "Title": "Title",
13
+  "Change": "Change",
14
+  "Move": "Move",
15
+  "Download": "Download",
16
+  "Archive": "Archive",
17
+  "Delete": "Delete"
13 18
 }

+ 6 - 1
frontend/i18next.scanner/fr/translation.json Näytä tiedosto

@@ -9,5 +9,10 @@
9 9
   "Create in folder...": "Créer dans le dossier ...",
10 10
   "Search...": "Rechercher ...",
11 11
   "Create a workspace": "Créer un espace de travail",
12
-  "Title": "Titre"
12
+  "Title": "Titre",
13
+  "Change": "Modifier",
14
+  "Move": "Déplacer",
15
+  "Download": "Télécharger",
16
+  "Archive": "Archiver",
17
+  "Delete": "Supprimer"
13 18
 }

+ 7 - 6
frontend/src/component/Workspace/BtnExtandedAction.jsx Näytä tiedosto

@@ -1,5 +1,6 @@
1 1
 import React from 'react'
2 2
 import PropTypes from 'prop-types'
3
+import { translate } from 'react-i18next'
3 4
 
4 5
 const ExtandedAction = props => {
5 6
   return (
@@ -22,7 +23,7 @@ const ExtandedAction = props => {
22 23
             <i className='fa fa-fw fa-pencil' />
23 24
           </div>
24 25
           <div className='subdropdown__item__text'>
25
-            Modifier
26
+            {props.t('Change')}
26 27
           </div>
27 28
         </div>
28 29
 
@@ -31,7 +32,7 @@ const ExtandedAction = props => {
31 32
             <i className='fa fa-fw fa-arrows-alt' />
32 33
           </div>
33 34
           <div className='subdropdown__item__text'>
34
-            Déplacer
35
+            {props.t('Move')}
35 36
           </div>
36 37
         </div>
37 38
 
@@ -40,7 +41,7 @@ const ExtandedAction = props => {
40 41
             <i className='fa fa-fw fa-download' />
41 42
           </div>
42 43
           <div className='subdropdown__item__text'>
43
-            Télécharger
44
+            {props.t('Download')}
44 45
           </div>
45 46
         </div> */ }
46 47
 
@@ -49,7 +50,7 @@ const ExtandedAction = props => {
49 50
             <i className='fa fa-fw fa-archive' />
50 51
           </div>
51 52
           <div className='subdropdown__item__text'>
52
-            Archiver
53
+            {props.t('Archive')}
53 54
           </div>
54 55
         </div>
55 56
 
@@ -58,7 +59,7 @@ const ExtandedAction = props => {
58 59
             <i className='fa fa-fw fa-trash-o' />
59 60
           </div>
60 61
           <div className='subdropdown__item__text'>
61
-            Supprimer
62
+            {props.t('Delete')}
62 63
           </div>
63 64
         </div>
64 65
 
@@ -67,7 +68,7 @@ const ExtandedAction = props => {
67 68
   )
68 69
 }
69 70
 
70
-export default ExtandedAction
71
+export default translate()(ExtandedAction)
71 72
 
72 73
 ExtandedAction.propTypes = {
73 74
   onClickExtendedAction: PropTypes.object.isRequired