From 908337a98f100d14f4cd1397e2bda1b42d47ec65 Mon Sep 17 00:00:00 2001 From: JuliaSvinareva Date: Tue, 19 Jan 2021 19:32:51 +0300 Subject: [PATCH] [DE mobile] Fixed init paragraph styles --- apps/documenteditor/mobile/locale/en.json | 28 +++++++++++++++++++ .../mobile/src/controller/Main.jsx | 5 +++- 2 files changed, 32 insertions(+), 1 deletion(-) diff --git a/apps/documenteditor/mobile/locale/en.json b/apps/documenteditor/mobile/locale/en.json index 0ba2161c0..c1f50c070 100644 --- a/apps/documenteditor/mobile/locale/en.json +++ b/apps/documenteditor/mobile/locale/en.json @@ -1,4 +1,32 @@ { + "Main" : { + "SDK": { + "Series": "Series", + "Diagram Title": "Chart Title", + "X Axis": "X Axis XAS", + "Y Axis": "Y Axis", + "Your text here": "Your text here", + "Footer": "Footer", + "Header": "Header", + "Normal": "Normal", + "No Spacing": "No Spacing", + "Heading 1": "Heading 1", + "Heading 2": "Heading 2", + "Heading 3": "Heading 3", + "Heading 4": "Heading 4", + "Heading 5": "Heading 5", + "Heading 6": "Heading 6", + "Heading 7": "Heading 7", + "Heading 8": "Heading 8", + "Heading 9": "Heading 9", + "Title": "Title", + "Subtitle": "Subtitle", + "Quote": "Quote", + "Intense Quote": "Intense Quote", + "List Paragraph": "List Paragraph", + "footnote text": "Footnote Text" + } + }, "Common": { "ThemeColorPalette": { "textThemeColors": "Theme Colors", diff --git a/apps/documenteditor/mobile/src/controller/Main.jsx b/apps/documenteditor/mobile/src/controller/Main.jsx index 417a62aa1..ad66e92e6 100644 --- a/apps/documenteditor/mobile/src/controller/Main.jsx +++ b/apps/documenteditor/mobile/src/controller/Main.jsx @@ -150,10 +150,12 @@ class MainController extends Component { _process_array(dep_scripts, promise_get_script) .then ( result => { + window["flat_desine"] = true; + const {t} = this.props; this.api = new Asc.asc_docs_api({ 'id-view' : 'editor_sdk', 'mobile' : true, - // 'translate': translate + 'translate': t('Main.SDK', {returnObjects:true}) }); this.appOptions = {}; @@ -249,6 +251,7 @@ class MainController extends Component { }); //paragraph settings + this.api.asc_setParagraphStylesSizes(330, 38); const storeParagraphSettings = this.props.storeParagraphSettings; this.api.asc_registerCallback('asc_onInitEditorStyles', (styles) => { storeParagraphSettings.initEditorStyles(styles);