Anders Thoresson on Nostr: Trying to wrap my head around #i18n and #11ty. Swedish will be the main language for ...
Trying to wrap my head around #i18n and #11ty.
Swedish will be the main language for the site I’m building, with some English content as well.
I want the Swedish content live directly from the root:
domain.tld
domain.tld/posts
domain.tld/about
etc
And /en/ added in for English.
Do I even need the i18n and translation plugins? Or could I just build that folder structure without them, and using variables/includes for translations in shared templates?
Published at
2024-04-01 09:35:51Event JSON
{
"id": "afd40b37410176e34246de7fe4a5dfe0e1387569c09ffecfb9915809a5e1181c",
"pubkey": "3de09c091d70297fb4830f0cec0c39a2bce3bb905a4b15f7a0af857bcac4cfa4",
"created_at": 1711964151,
"kind": 1,
"tags": [
[
"t",
"i18n"
],
[
"t",
"11ty"
],
[
"proxy",
"https://thoresson.social/users/anders/statuses/112195282626476971",
"activitypub"
]
],
"content": "Trying to wrap my head around #i18n and #11ty. \n\nSwedish will be the main language for the site I’m building, with some English content as well. \n\nI want the Swedish content live directly from the root:\n\ndomain.tld\ndomain.tld/posts\ndomain.tld/about\netc\n\nAnd /en/ added in for English. \n\nDo I even need the i18n and translation plugins? Or could I just build that folder structure without them, and using variables/includes for translations in shared templates?",
"sig": "82fce1dee9bd348ddcab148ee70fbf176418c44f92117245846084807ec2e4c8328050430420008a5f8350ec2decb69143e1b60066ba7b04a21f31546ec879a9"
}