@@ -2,7 +2,6 @@ import React from 'react';
22import PropTypes from 'prop-types' ;
33
44import { settings , layout } from '@pie-lib/pie-toolbox/config-ui' ;
5- import Translator from '@pie-lib/pie-toolbox/translator' ;
65
76import { withStyles } from '@material-ui/core/styles' ;
87import Typography from '@material-ui/core/Typography' ;
@@ -11,7 +10,6 @@ import { ConfimationDialog, PassageButton } from './common';
1110import Passage from './passage' ;
1211
1312const { Panel, toggle, dropdown } = settings ;
14- const { translator } = Translator ;
1513
1614export class Main extends React . Component {
1715 static propTypes = {
@@ -113,10 +111,7 @@ export class Main extends React.Component {
113111 language && language . settings && language . enabled && dropdown ( languageChoices . label , languageChoices . options ) ,
114112 } ;
115113
116- const confirmationDialogContent = translator . t ( 'translation:passage:confirmToDeleteText' , {
117- lng : model . language ,
118- label : additionalPassage . label ,
119- } ) ;
114+ const confirmationDialogContent = `${ additionalPassage . label } will be deleted` ;
120115
121116 const { indexToRemove, showConfirmationDialog } = this . state ;
122117
@@ -168,16 +163,10 @@ export class Main extends React.Component {
168163 } ) }
169164 < ConfimationDialog
170165 open = { showConfirmationDialog }
171- title = { translator . t ( 'common:warning' , {
172- lng : model . language ,
173- } ) }
166+ title = { 'Warning' }
174167 content = { confirmationDialogContent }
175- cancel = { translator . t ( 'common:cancel' , {
176- lng : model . language ,
177- } ) }
178- ok = { translator . t ( 'common:ok' , {
179- lng : model . language ,
180- } ) }
168+ cancel = { 'Cancel' }
169+ ok = { 'Ok' }
181170 onCancel = { ( ) =>
182171 this . setState ( {
183172 showConfirmationDialog : false ,
0 commit comments