Re: [w3ctag/design-reviews] Serialization of natural language in data formats such as JSON [I18N] (#178)

Not to be a pedant, but if you separate the language tag from the other fields, don't you introduce ambiguity or risk of error?

{
    "id": "978-0-1234-5678-X",
    "title": "Quo Vadis",
    "authors": [ " Henryk Sienkiewicz" ],
    "language": "la",
    "pubDate": "1895-10-18",
      // etc.
},

The title is indeed in Latin. The book was originally written in Polish. But maybe this edition is in some other language. This becomes particularly problematic if two fields need different tagging (here, the author's name might be tagged as "pl" -- Polish).

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3ctag/design-reviews/issues/178#issuecomment-313787332

Received on Friday, 7 July 2017 20:39:27 UTC