Fichiers De Localisation
Skedar Lokalizimi
ملفات الترجمة
Supported
localization files
Sample file
View file
Download
{
"app": {
"name": "TODO List",
"login": {
"text": "Enter your credentials below to login",
"message": {
"success": "Login successful !\nWelcome back %s !",
"error": "Make sure you've entered the correct username and password"
},
"password": {
"forget": "I forgot my password",
"reset": "Enter your address in the field below. A new password will be sent to your inbox."
},
"user": "Username",
"pass": "Password"
},
"register": {
"text": "Sign up for free! No credit card required!",
"message": {
"success": "Thank you for signing up !\nPlease check your email address to activate your account.",
"error": "We were unable to sign you up.\nPlease correct the marked fields."
}
},
"menu": {
"terms": "Terms and conditions"
}
}
}
Key-Value JSON
What are Key-Value JSON files
JSON (JavaScript Object Notation) is a lightweight data-interchange format. It is easy for humans to read and write and for machines to parse and generate. JSON is a text format that is completely language independent but uses conventions that are familiar to programmers of the C-family of languages, including C, C++, C#, Java, JavaScript, Perl, Python, and many others.
The Key-Value JSON is used mainly in Javascript apps and frameworks. Every key is associated with a value, hierarchical data is supported.
It's used by angular-translate, i18next, chrome extensions, i18n-node and many other libraries.
Good to know
- For Key-Value JSON in particular, we import the keys as terms, and the path of the keys in the Context field (each key in the path also wrapped in quotes).
- The terms are exported by default to Key-Value JSON based on their path.
-
On import, any Unicode escape sequences coming from a Key-Value JSON file are converted to UTF-8 symbols, and are exported as such.
- JSON needs to be put in a .json extension file with an UTF-8 without BOM encoding
- Arrays containing objects or other arrays are ignored
DOCUMENTATION
Official JSON documentation website