Atomic Translations
Status: design / concept stage
Dealing with translations can be hard. (See discussion on this subject here.)
TranslationBox
URL: https://atomicdata.dev/classes/TranslationBox
(does not resolve yet)
A TranslationBox is a collection of translated strings, uses to provide multiple translations.
It has a long list of optional properties, each corresponding to some language.
Each possible language Property uses the following URL template: https://atomicdata.dev/languages/{langguageTag}
.
Use a BCP 47 language tag, e.g. nl
or en-US
.
For example:
{
"@id": "https://example.com/john",
"https://example.com/properties/lifestory": {
"https://atomicdata.dev/languages/en": "Well, John was born and later he died.",
"https://atomicdata.dev/languages/nl": "Tsja, John werd geboren en stierf later."
},
}
Every single property used for Translation strings are instances of the Translation class.
A translation string uses the MDString datatype, which means it allows Markdown syntax.