Skip to content

Instantly share code, notes, and snippets.

@KacperKozak
Created July 8, 2024 00:23
Show Gist options
  • Save KacperKozak/7fa6e0549832ccc072a4f363c607ded4 to your computer and use it in GitHub Desktop.
Save KacperKozak/7fa6e0549832ccc072a4f363c607ded4 to your computer and use it in GitHub Desktop.
// ludzie-iza.json
{
"name": "Izabela",
"age": 25,
"city": "Warsaw",
"description": {
"pl": "Jestem programistką",
"en": "I'm a programmer",
"de": "Ich bin Programmiererin"
}
}
// onas.json
{
"hero-image": "onas.svg",
"title": {
"pl": "O nas",
"en": "About us"
},
"content": {
"pl": [
{ "type": "text", "content": "Jesteśmy firmą zajmującą się tworzeniem oprogramowania" },
{ "type": "image", "src": "onas.jpg" }
],
"en": [
{ "type": "text", "content": "We are a software development company" },
{ "type": "image", "src": "aboutus.jpg" }
]
}
}
// articles-pl.json
[
{
"title": "Jak zostać programistą",
"content": "..."
},
{
"title": "Jak zostać testerem",
"content": "..."
}
]
// articles-en.json
[
{
"title": "How to become a programmer",
"content": "..."
}
]
// all-articles.json
{
"pl": [
{
"title": "Jak zostać programistą",
"content": "...",
"image": "programista.jpg",
},
{
"title": "Jak zostać testerem",
"content": "..."
}
],
"en": [
{
"title": "How to become a programmer",
"content": "...",
"image": "programista.jpg"
}
]
}
// translatable-articles.json
[
{
"langs": ["pl", "en"],
"title": {
"pl": "Jak zostać programistą",
"en": "How to become a programmer"
},
"content": {[
{ type: 'md', content: {
"pl": "..."
} },
{ type: 'html', content: {
"pl": "<p>...</p>"
}
},
"image": "programista.jpg",
"image_en": "programmer.jpg"
},
{
"langs": ["pl"],
"title": {
"pl": "Jak zostać testerem",
"en": null
},
"content": {
"pl": "...",
"en": null
},
"image": "tester.jpg",
"image_en": null
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment