Skip to content

Commit

Permalink
Fix bug #73054
Browse files Browse the repository at this point in the history
Show default lang for rtl text from bidi parameter
  • Loading branch information
KirillovIlya committed Feb 4, 2025
1 parent 805ae69 commit aede85f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion word/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -4970,7 +4970,12 @@ background-repeat: no-repeat;\
};
asc_docs_api.prototype.sync_TextLangCallBack = function(Lang)
{
this.sendEvent("asc_onTextLanguage", Lang.Val);
// TODO: По-хорошему, надо сюда уже присылать lcid, а решать какой выше
let lcid = Lang.Val;
if (this.asc_isRtlTextDirection() && undefined !== Lang.Bidi)
lcid = Lang.Bidi;

this.sendEvent("asc_onTextLanguage", lcid);
};
asc_docs_api.prototype.sync_ParaStyleName = function(Name)
{
Expand Down

0 comments on commit aede85f

Please sign in to comment.