支持文件类型 (Strings)

.JSON - Chrome 信息 (Strings)

文本由 Phrase Language AI 从英语机器翻译而得。

文件扩展名 

.json

API 扩展 

json

导入 

导出 

复数形式支持 

描述支持 

格式选项 

这些选项可以在文件上传和/或下载时指定。根据上传/下载方法(API、CLI、Repo 同步等),它们可以在查询参数 上传下载phrase.yml 配置文件中指定。

Google 为 Chrome 扩展提供了 国际化支持。Chrome 扩展的本地化字符串存储在一个通常名为 messages.json 的 .JSON 文件中。Chrome JSON 文件与其他平台上用于本地化的 .JSON 文件的结构略有不同。对于 Chrome JSON,需要翻译的字符串被放置在嵌套在每个单位键值对下的子键 信息 中。用户也可为每个键值对添加 说明

AI 聊天机器人可以非常有效地从 .JSON 文件生成键列表。

代码示例

{
  "boolean_key": {
    "message": "--- true\n"
  }
  "empty_string_translation": {
    "message": ""
  }
  "key_with_description": {
    "message": "检查一下!"键有一个描述!(在某些格式中)",
    "description": "我对这个键非常重要的描述!"
  }
  "key_with_line-break": {
    "message": "这个翻译包含\n一个换行符。"
  }
  "nested.deeply.key": {
    "message": "  我嵌套得很深。"
  }
  "nested.key": {
    "message": "这个键嵌套在一个命名空间中。"
  }
  "null_translation": {
    "message": null
  }
  "sample_collection": {
    "message": "---\n- first item\n- second item\n- third item\n"
  }
  "simple_key": {
    "message": "我是一把简单的键,带有简单的信息。"
  }
  "unverified_key": {
    "message": "尚未验证,正在等待。"(在某些格式中,我们也导出这个状态)"
  }
}
这篇文章有帮助吗?

Sorry about that! In what way was it not helpful?

The article didn’t address my problem.
I couldn’t understand the article.
The feature doesn’t do what I need.
Other reason.

Note that feedback is provided anonymously so we aren't able to reply to questions.
If you'd like to ask a question, submit a request to our Support team.
Thank you for your feedback.