Skip to content

Commit c76c422

Browse files
committed
fix(passage): get rid of translator PD-4040
1 parent a0aa8bf commit c76c422

1 file changed

Lines changed: 4 additions & 15 deletions

File tree

packages/passage/configure/src/design.jsx

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import React from 'react';
22
import PropTypes from 'prop-types';
33

44
import { settings, layout } from '@pie-lib/pie-toolbox/config-ui';
5-
import Translator from '@pie-lib/pie-toolbox/translator';
65

76
import { withStyles } from '@material-ui/core/styles';
87
import Typography from '@material-ui/core/Typography';
@@ -11,7 +10,6 @@ import { ConfimationDialog, PassageButton } from './common';
1110
import Passage from './passage';
1211

1312
const { Panel, toggle, dropdown } = settings;
14-
const { translator } = Translator;
1513

1614
export 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

Comments
 (0)