Multi-language support

Updated at:

This topic describes the multi-language support of WebOffice.

Supported languages

Language

Description

zh-CN

Chinese. This is the default language.

en-US

English.

Usage notes

Multi-language selection priority

WebOffice obtains the language to display from the following elements. The elements are sorted by priority in descending order.

  • The lang element in the preview URL.

  • The lang element in the cookie.

  • The declared language of the browser, which is the ACCEPT-LANGUAGE element in the HTTP header.

WebOffice compares the preceding elements with the multi-language configurations of the server. If the obtained language is supported by the server, WebOffice displays the language. Otherwise, WebOffice displays the default language.

Example

Display English

Assume that the preview URL that is returned by the GenerateWebofficeToken operation is "https://office-cn-shanghai.imm.aliyuncs.com/office/p/99570c556dfadcfe8bd04fad998cc4ca7534****?_w_tokentype=1". Add the lang=en-US parameter to the end of the URL to specify the English language. The URL is "https://office-cn-shanghai.imm.aliyuncs.com/office/p/99570c556dfadcfe8bd04fad998cc4ca7534****?_w_tokentype=1&lang=en-US". When you access the URL, the interface is in English.