feat(locale): Make editor interface buttons translatable (#4938)
This commit is contained in:
parent
34dfd219e0
commit
c0236536dd
@ -358,7 +358,7 @@ class EditorInterface extends Component {
|
|||||||
onClick={this.handleToggleI18n}
|
onClick={this.handleToggleI18n}
|
||||||
size="large"
|
size="large"
|
||||||
type="page"
|
type="page"
|
||||||
title="Toggle i18n"
|
title={t('editor.editorInterface.toggleI18n')}
|
||||||
marginTop="70px"
|
marginTop="70px"
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
@ -368,7 +368,7 @@ class EditorInterface extends Component {
|
|||||||
onClick={this.handleTogglePreview}
|
onClick={this.handleTogglePreview}
|
||||||
size="large"
|
size="large"
|
||||||
type="eye"
|
type="eye"
|
||||||
title="Toggle preview"
|
title={t('editor.editorInterface.togglePreview')}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
{scrollSyncVisible && (
|
{scrollSyncVisible && (
|
||||||
@ -377,7 +377,7 @@ class EditorInterface extends Component {
|
|||||||
onClick={this.handleToggleScrollSync}
|
onClick={this.handleToggleScrollSync}
|
||||||
size="large"
|
size="large"
|
||||||
type="scroll"
|
type="scroll"
|
||||||
title="Sync scrolling"
|
title={t('editor.editorInterface.toggleScrollSync')}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
</ViewControls>
|
</ViewControls>
|
||||||
|
@ -111,6 +111,11 @@ const en = {
|
|||||||
loadingEntry: 'Loading entry...',
|
loadingEntry: 'Loading entry...',
|
||||||
confirmLoadBackup: 'A local backup was recovered for this entry, would you like to use it?',
|
confirmLoadBackup: 'A local backup was recovered for this entry, would you like to use it?',
|
||||||
},
|
},
|
||||||
|
editorInterface: {
|
||||||
|
toggleI18n: 'Toggle i18n',
|
||||||
|
togglePreview: 'Toggle preview',
|
||||||
|
toggleScrollSync: 'Sync scrolling',
|
||||||
|
},
|
||||||
editorToolbar: {
|
editorToolbar: {
|
||||||
publishing: 'Publishing...',
|
publishing: 'Publishing...',
|
||||||
publish: 'Publish',
|
publish: 'Publish',
|
||||||
|
@ -114,6 +114,11 @@ const fr = {
|
|||||||
confirmLoadBackup:
|
confirmLoadBackup:
|
||||||
"Une sauvegarde locale a été trouvée pour cette entrée. Voulez-vous l'utiliser",
|
"Une sauvegarde locale a été trouvée pour cette entrée. Voulez-vous l'utiliser",
|
||||||
},
|
},
|
||||||
|
editorInterface: {
|
||||||
|
toggleI18n: 'Édition multi-langues',
|
||||||
|
togglePreview: 'Aperçu',
|
||||||
|
toggleScrollSync: 'Défilement synchronisé',
|
||||||
|
},
|
||||||
editorToolbar: {
|
editorToolbar: {
|
||||||
publishing: 'Publication...',
|
publishing: 'Publication...',
|
||||||
publish: 'Publier',
|
publish: 'Publier',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user