You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a Word Add-In (TaskPaneApp) using office-js and I want to get the spell checkers language for a certain paragraph. In a document I can specify different languages for a different paragraphs. One can be in de-DE another one in en-US. What I need is the language from the current selection. Is that possible and if so how?
I'm not sure where to look for, everything I find seems to be for VBA like languageId / languageName.
I already know that there is Office.context.contentLanguage but this only returns the language set in the settings which can be different from the current selection / paragraph. One could write something in fr-FR but still have the contentLanguage set to de-DE.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have a Word Add-In (TaskPaneApp) using office-js and I want to get the spell checkers language for a certain paragraph. In a document I can specify different languages for a different paragraphs. One can be in de-DE another one in en-US. What I need is the language from the current selection. Is that possible and if so how?
I'm not sure where to look for, everything I find seems to be for VBA like languageId / languageName.
I already know that there is
Office.context.contentLanguage
but this only returns the language set in the settings which can be different from the current selection / paragraph. One could write something in fr-FR but still have the contentLanguage set to de-DE.Beta Was this translation helpful? Give feedback.
All reactions