1. Help Center
  2. Supported formats

Angular Translate

Phrase supports JSON format for usage with angular-translate to localize AngularJS applications.

Angular Translate JSON

File Extensions               .json
API Extension angular_translate
Pluralization supported?   No
Descriptions supported?             No
Import Yes
Export   Yes

Code Sample

 "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": {
   "one": "You have 1 cute kitten.",
   "other": "You have %s cute kittens!",
   "zero": "You have no cute kittens :(."
 "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)"