RESJSON Localization

RESJSON files are used by Windows “Metro” style applications developed for Windows 8. They are saved in a JSON (JavaScript Object Notation) format and contain strings that are often used for localizing the application’s user interface.
If you are working with RESX or RESW files please take a look at this guide.

Format

  • The whole content is enclosed in braces ({ }) with no new lines.
  • Key-value pairs are delimited with colons (:).
  • Keys and values are surrounded by quotes (“).
  • Key-value pairs are comma separated.
  • Placeholder syntax: {name}, where “name” can be a combination of non-whitespace characters
  • Key-value pairs with a key syntax like: “_somekey.comment” where “somekey” is an existing key, are treated as comments belonging to a key-value pair with the “somekey” key. The location of the comment in the file is not important.
  • We use UTF-8 encoding for RESJSON resource files exports by default, but you can always choose a different encoding if needed.

Example

Additional example files can be accessed here.
{
"hello_user" : "Hello {username}",
"_welcome.comment" : "keys with .comment suffix are treated as translation descriptions belonging to that key-value pair",
"_welcome.comment" : "multiple comments for the same key-value pair are allowed.",
"welcome" : "Welcome to LingoHub! This is your {visit_count} visit.",
"_welcome.comment" : "lh-check {placeholders:true, terms: LingoHub, min: -5, max:+5}"
}

Resources