支持文件类型 (Strings)

.JSON - Angular Translate (Strings)

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

文件扩展名 

.json

API 扩展 

angular_translate

导入 

导出 

复数形式支持 

描述支持 

Angular Translate 是专为 AngularJS 应用程序设计的本地化/国际化模块。Angular Translate 与 AngularJS 丝滑集成,让开发者能够灵活地将本地化后的字符串加载到 App 中。Angular Translate 的标准本地化文件格式是 .JSON。.JSON 文件中的数据以键-值对字符串的形式呈现。

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

代码示例

{
 "boolean_key": "--- true\n",
 "empty_string_translation": "",
 "key_with_description":"Key description!(in some formats)",
 "key_with_line-break":"This translations contains\na line-break.",
 "nested.deeply.key":"I am nested deeply.",
 "nested.key":"And that key is nested inside a namespace.",
 "null_translation": null,
 "pluralized_key":"您有 {itemCount, plural, =0 {no items} =1 {one item} other {# items}}.",
 "sample_collection": "---\n- first item\n- second item\n- third item\n",
 "simple_key":"I am a simple key with a simple message.",
 "unverified_key":"Not yet verified.(In some formats we also export this status)"
}
这篇文章有帮助吗?

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.