fix: ja locale labels (#3367)
This commit is contained in:
@ -48,7 +48,7 @@ const ToolbarToggleLabel = styled.span`
|
||||
text-align: center;
|
||||
white-space: nowrap;
|
||||
line-height: 20px;
|
||||
width: ${props => (props.offPosition ? '62px' : '70px')};
|
||||
min-width: ${props => (props.offPosition ? '62px' : '70px')};
|
||||
|
||||
${props =>
|
||||
props.isActive &&
|
||||
@ -58,15 +58,6 @@ const ToolbarToggleLabel = styled.span`
|
||||
`};
|
||||
`;
|
||||
|
||||
const headingOptions = {
|
||||
'heading-one': 'Heading 1',
|
||||
'heading-two': 'Heading 2',
|
||||
'heading-three': 'Heading 3',
|
||||
'heading-four': 'Heading 4',
|
||||
'heading-five': 'Heading 5',
|
||||
'heading-six': 'Heading 6',
|
||||
};
|
||||
|
||||
export default class Toolbar extends React.Component {
|
||||
static propTypes = {
|
||||
buttons: ImmutablePropTypes.list,
|
||||
@ -123,6 +114,15 @@ export default class Toolbar extends React.Component {
|
||||
const showPlugin = ({ id }) => (editorComponents ? editorComponents.includes(id) : true);
|
||||
const pluginsList = plugins ? plugins.toList().filter(showPlugin) : List();
|
||||
|
||||
const headingOptions = {
|
||||
'heading-one': t('editor.editorWidgets.headingOptions.headingOne'),
|
||||
'heading-two': t('editor.editorWidgets.headingOptions.headingTwo'),
|
||||
'heading-three': t('editor.editorWidgets.headingOptions.headingThree'),
|
||||
'heading-four': t('editor.editorWidgets.headingOptions.headingFour'),
|
||||
'heading-five': t('editor.editorWidgets.headingOptions.headingFive'),
|
||||
'heading-six': t('editor.editorWidgets.headingOptions.headingSix'),
|
||||
};
|
||||
|
||||
return (
|
||||
<ToolbarContainer>
|
||||
<div>
|
||||
|
Reference in New Issue
Block a user