Skip to content

Commit 9dedc0e

Browse files
committed
Update and correct translation keys
1 parent 176fd71 commit 9dedc0e

File tree

6 files changed

+708
-364
lines changed

6 files changed

+708
-364
lines changed

scripts/translationKeys/combined-translation-keys.txt

Lines changed: 379 additions & 206 deletions
Large diffs are not rendered by default.

scripts/translationKeys/translation-keys.txt

Lines changed: 321 additions & 150 deletions
Large diffs are not rendered by default.

src/components/containers/AnnotationAccordion.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@ import Fold from './Fold';
22
import TraceRequiredPanel from './TraceRequiredPanel';
33
import PropTypes from 'prop-types';
44
import React, {Component} from 'react';
5-
import {connectAnnotationToLayout} from 'lib';
5+
import {connectAnnotationToLayout, localize} from 'lib';
66

77
const AnnotationFold = connectAnnotationToLayout(Fold);
88

99
class AnnotationAccordion extends Component {
1010
render() {
1111
const {layout: {annotations = []}} = this.context;
12-
const {canAdd, children} = this.props;
12+
const {canAdd, children, localize: _} = this.props;
1313

1414
const content =
1515
annotations.length &&
@@ -25,7 +25,7 @@ class AnnotationAccordion extends Component {
2525
));
2626

2727
const addAction = {
28-
label: 'Annotation',
28+
label: _('Annotation'),
2929
handler: ({layout, updateContainer}) => {
3030
let annotationIndex;
3131
if (Array.isArray(layout.annotations)) {
@@ -60,4 +60,4 @@ AnnotationAccordion.propTypes = {
6060
canAdd: PropTypes.bool,
6161
};
6262

63-
export default AnnotationAccordion;
63+
export default localize(AnnotationAccordion);

src/components/containers/PanelHeader.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class PanelHeader extends Component {
4545
className="js-add-button"
4646
onClick={() => addAction.handler(this.context)}
4747
icon={icon}
48-
label={_(addAction.label)}
48+
label={addAction.label}
4949
/>{' '}
5050
</div>
5151
) : null}

src/components/containers/TraceAccordion.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const TraceFold = connectTraceToPlot(Fold);
1111
class TraceAccordion extends Component {
1212
render() {
1313
const {data = []} = this.context;
14-
const {canAdd, children, messageIfEmptyFold} = this.props;
14+
const {canAdd, children, messageIfEmptyFold, localize: _} = this.props;
1515

1616
const content =
1717
data.length &&
@@ -30,7 +30,7 @@ class TraceAccordion extends Component {
3030

3131
if (canAdd) {
3232
const addAction = {
33-
label: 'Trace',
33+
label: _('Trace'),
3434
handler: ({onUpdate}) => {
3535
if (onUpdate) {
3636
onUpdate({

src/default_panels/StyleTracesPanel.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ const StyleTracesPanel = ({localize: _}) => (
6565
/>
6666
<Radio
6767
attr="flatshading"
68-
label={_('flatshading')}
68+
label={_('Flatshading')}
6969
options={[
7070
{label: _('Enable'), value: true},
7171
{label: _('Disable'), value: false},

0 commit comments

Comments
 (0)