Skip to content
This repository was archived by the owner on Aug 8, 2022. It is now read-only.
This repository was archived by the owner on Aug 8, 2022. It is now read-only.

[翻译讨论] 自定义事件 - 处理 v-model 修饰符 的翻译讨论 #351

Closed
@ShroXd

Description

@ShroXd

一、原文

  1. 英文原文
    Notice that when the component's created lifecycle hook triggers, the modelModifiers prop contains capitalize and its value is true - due to it being set on the v-model binding v-model.capitalize="myText".

  2. 中文原文
    请注意,当组件的 created 生命周期钩子触发时,modelModifiers prop 包含 capitalize,其值为 true——因为它被设置在 v-model 绑定 v-model.capitalize="bar"。

二、译法问题

  1. 在原文及示例代码中,代码均为 v-model.capitalize="myText",但中文错译为了 v-model.capitalize="bar"
  2. “因为它被设置在 v-model 绑定 v-model.capitalize="bar"” 这句的翻译不够恰当。
    首先,v-model binding 这个整体应当被翻译为 “v-model 绑定”,作为一个名词使用,与前面的翻译统一。
    其次,这里的补充解释不仅仅是对前面 “modelModifiers prop 包含 capitalize,其值为 true” 这一部分的解释,同时也是对上一自然段 “添加到组件 v-model 的修饰符将通过 modelModifiers prop 提供给组件。” 这句话的举例说明,所以应当改进。

三、改进后的翻译

请注意,当组件的 created 生命周期钩子触发时,modelModifiers prop 会包含 capitalize,且其值为 true——因为 capitalize 被设置在了写为 v-model.capitalize="myText"v-model 绑定上。

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions