fix: ja locale labels (#3367)

This commit is contained in:
Erez Rokah
2020-03-05 16:35:24 +01:00
committed by GitHub
parent 39f1307e3a
commit 50837b0068
21 changed files with 175 additions and 23 deletions

View File

@ -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>