translationPreferences 资源类型translationPreferences resource type

命名空间:microsoft.graphNamespace: microsoft.graph

重要

Microsoft Graph /beta 中的版本下的 API 可能会更改。APIs under the /beta version in Microsoft Graph are subject to change. 不支持在生产应用程序中使用这些 API。Use of these APIs in production applications is not supported. 若要确定 API 在 v1.0 中是否可用,请使用版本 选择 器。To determine whether an API is available in v1.0, use the Version selector.

表示用户的翻译语言替代列表中的条目。Represents an entry in a user's translation language override list.

属性Properties

属性Property 类型Type 说明Description
translationBehaviortranslationBehavior translationBehaviortranslationBehavior 用户的首选翻译行为。The user's preferred translation behavior.

默认返回。Returned by default. 不可为空。Not nullable.
languageOverrideslanguageOverrides translationLanguageOverride 集合translationLanguageOverride collection 语言(如果有)的翻译替代行为。Translation override behavior for languages, if any.

默认情况下返回。Returned by default.
untranslatedLanguagesuntranslatedLanguages 字符串集合String collection 用户不需要翻译的语言列表。The list of languages the user does not need translated. 这从 regionalAndLanguageSettings中的 authoringLanguages 集合和 translationPreferences 中的 languageOverrides 集合计算。This is computed from the authoringLanguages collection in regionalAndLanguageSettings, and the languageOverrides collection in translationPreferences. 该列表指定中性区域性值,其中包括没有任何国家/地区关联的语言代码。The list specifies neutral culture values that include the language code without any country or region association. 例如,它会为中性法语区域性指定"fr",而不是为法国法语指定"fr-FR"。For example, it would specify "fr" for the neutral French culture, but not "fr-FR" for the French culture in France.

默认情况下返回。Returned by default. 只读。Read only.

translationBehavior 值translationBehavior values

成员Member 说明Description
AskAsk 在翻译用户的消息/聊天/网页之前提示用户。Prompt the user before translating the messages/chats/web pages for the user.
Yes 自动翻译用户的消息/聊天/网页。Automatically translate the messages/chats/web pages for the user.
No 不要为用户提供提示或自动翻译。Do not offer prompted or automatic translation for the user.

JSON 表示形式JSON representation

下面是资源的 JSON 定义。The following is a JSON definition of the resource.

{
    "translationBehavior": "string",
    "languageOverrides": [{"@odata.type":"microsoft.graph.translationLanguageOverride"}],
    "untranslatedLanguages": ["string"]
}