I18n

Small Project

Rules:

  • Tree: No trees
  • Ordering: Ascending text sort (A -> Z)
{
"ENG_TITLE": "Eng title",
"SOME_TEXT": "Some text"
}

Programmation logic purpose

You can also use a small tree in case you need it, if a component needs to loop trough an element for example.

Big Project

Rules:

  • Tree: Follow our Folder structure
    • Shared folder: For medium websites, put every component on the same lvl
  • Ordering: Follow the website logic
{
"GLOBAL": {
"More": "Only button or link name"
},
"SHARED": {
"COMPONENT": "{...}"
},
"PAGE": {
"COMPONENT": {
"TITLE": "Title",
"SUBTITLE": "Subtitle",
"CONTENT": "Text",
"CONTAINER": {
"TITLE": "",
"SUBTITLE": "",
"ITEMS": [
{
"TITLE": "Item title"
},
{
"TITLE": "Item2 title"
}
]
},
"LIST": ["Going", "trough", "a", "loop"],
"BUTTON": "Single button",
"BUTTONS": {
"NAME": "Button name, if not specific",
"NAME2": "put it in the global"
}
},
"COMPONENT_2": "{...}"
}
}