文件扩展名 |
.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)" }