Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nullable 译法讨论 #958

Closed
3 tasks done
wxsms opened this issue May 30, 2024 · 5 comments
Closed
3 tasks done

nullable 译法讨论 #958

wxsms opened this issue May 30, 2024 · 5 comments

Comments

@wxsms
Copy link
Member

wxsms commented May 30, 2024

提问须知

  • 我确定这是官方版本 cn.vuejs.org 的 issue,而不是其他非官方翻译版本
  • 我确定这是翻译问题,而不是英文原文的问题 (英文原文的问题请移步至英文文档仓库讨论,相关结论我们会定期从英文版同步)
  • 我确定这不是 Vue.js 使用方面的问题 (此类问题请在我们的论坛Discord 聊天室StackOverflow 上发帖求助)

问题类型

文档翻译相关

问题描述

see #956

nullable 这个单词是否有必要统一处理为“可为 null”?

比如 Required but nullable string 翻译为 必传但可为空的字符串,容易联想到空字符串而非 null。

#956 涉及的页面尚存在部分其他内容使用了 nullable,如 L570:

### Nullable Type {#nullable-type}

If the type is required but nullable, you can use the array syntax that includes `null`:
@xiaodong2008
Copy link
Member

我的意见是要么就全部不翻译,要么就全部改成可为null,我个人倾向不翻译

@Justineo
Copy link
Contributor

Justineo commented Jun 2, 2024

JavaScript 中说“可空”可能会引起是 null 还是 undefined 的混淆,“可以为 null 的……”可能更准确一点。

@xiaodong2008
Copy link
Member

xiaodong2008 commented Jun 2, 2024

同意 @Justineo,可空的定义太模糊了,可能有部分用户还会联想到空字符串之类的错误定义,可为 nullnullable 则没有这个问题

@wxsms
Copy link
Member Author

wxsms commented Jul 10, 2024

那我统一处理为 可为 null 的 了,稍后更新 wiki 术语表。谢谢。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants