How to change the feault language for the spellchecker when the doc is opened. It always to be english

how to change the feault languag for the spellchecker when the doc is opened. It always to be english

@softboy99
You need to change the language of the file templates you use on the side of your application when initializing the editor.
Here you can find our tempaltes for the empty files with pre-set languages:

I’m quite confused. How about the document not created by OnlyOffice,eg. Ms word? It’s created elsewhere and upload.

In this case you need to manually change the document language. Since it is a document property, it cannot be adjusted via Docs API.

How to change the document language? Why not to use the config.Lang parameter?

The lang parameter sets the language of the editor interface, not the document language.

You can change the document language here:
image

the document language is saved in the document itself? If so, why not to make it be automatically identfied?

Yes, as I wrote earlier, document language is a property of the document.

What do you mean by that? If you set a correct document language, the spellchecking will be set appropriately.

if the document language is saved in the document itself. It has nothing to do with the template you said before. No matter where is created. eg. created by ms word an then upload. The spellchecker should can identify the language automatically from the document itself.

Do you think it is friendly behaviour to correct document languge after it is uploade to onlyoffice and change it one by one?

Sorry, but I’m not quite following what you are trying to achieve here. Feel free to share your ideas on how the feature should work and it would be also good if you provide any example of how it is implemented in other document processing applications.

Hi,
I don’t know how to implement. But i konw it’s not a good behaviour to correct document languge after opening it one by one. You said before, the document language info is stored in the document itself.

Thank you for your input. I’m afraid we won’t be able to change this behavior.