Merge pull request #1646 from ONLYOFFICE/fix/bugfix

Fix/bugfix
This commit is contained in:
Julia Radzhabova 2022-03-23 15:41:38 +03:00 committed by GitHub
commit 576c9a871c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 2 deletions

View file

@ -219,7 +219,7 @@
"textBefore": "Before",
"textBehind": "Behind Text",
"textBorder": "Border",
"textBringToForeground": "Bring to foreground",
"textBringToForeground": "Bring to Foreground",
"textBullets": "Bullets",
"textBulletsAndNumbers": "Bullets & Numbers",
"textCellMargins": "Cell Margins",

View file

@ -283,10 +283,18 @@ class MainController extends Component {
.then ( result => {
window["flat_desine"] = true;
const {t} = this.props;
let _translate = t('Main.SDK', {returnObjects:true});
for (let item in _translate) {
if (_translate.hasOwnProperty(item)) {
const str = _translate[item];
if (item[item.length-1]===' ' && str[str.length-1]!==' ')
_translate[item] += ' ';
}
}
this.api = new Asc.asc_docs_api({
'id-view' : 'editor_sdk',
'mobile' : true,
'translate': t('Main.SDK', {returnObjects:true})
'translate': _translate
});
Common.Notifications.trigger('engineCreated', this.api);