JSON Localization

Quite a lot JavaScript libraries or frameworks exist for localizing an application. Therefore we have defined a standard JSON format.

Use a simple json file to define your translations.

Format

  • The json file is used.
  • To write a valid JavaScript object (hash), the key does not need to be quoted.
    However, in a valid json file, key and value have to be quoted.
  • The placeholder syntax is “{{ placeholder }}”.
  • The file can have a flat or hierarchical structure (see examples below).
  • comments for segments can be added in the format
    “_<key of the associated segment>.comment=…”

Example

Additional example files can be accessed here.