Skip to content

Add a Selecting on Language section, 'inLanguage' property. - #89

Draft
dmitrizagidulin wants to merge 3 commits into
mainfrom
selecting-on-language
Draft

dmitrizagidulin wants to merge 3 commits into
mainfrom
selecting-on-language

Conversation

@dmitrizagidulin

@dmitrizagidulin dmitrizagidulin commented Oct 6, 2026 •

Copy link
Copy Markdown
Collaborator

Partially addresses issues #26 and #67


Preview | Diff

Comment thread index.html
Comment on lines +387 to +394
<tr>
<td>targetLanguage</td>
<td>
An OPTIONAL [=string=] that designates a language range this render method is
meant to support (see the<a href="https://www.w3.org/TR/international-specs/#lang-matching">Matching
language and language tags</a> section for more details).
</td>
</tr>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this isn't well optimized for either scalability or privacy. I think it would be better for the payload to have language information, so every client fetches the same payload and then makes the language choice privately on the client. I think this would also avoid making issuers list many different render methods, one per language.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The idea is exactly that -- it's specified once at issuance, and the selection is made on the client. The privacy considerations of fetching external payloads is a very valid concern, but it's part of the overall render method threat model (it's not specific to language).

@TallTed TallTed Oct 7, 2026 •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems that payload size has to come into play somewhere, like using ConNeg to GET a representation in only one language, instead of one representation including all of the "approximately 7,170" (!!) "living languages spoken in the world today".

Yes, privacy considerations are in play, but there has to be a balance between concerns!

Comment thread index.html
Comment thread index.html
Comment thread index.html
Comment thread index.html
Base automatically changed from template-to-payload to main October 13, 2026 13:47
Signed-off-by: Dmitri Zagidulin <dzagidulin@gmail.com>
Signed-off-by: Dmitri Zagidulin <dzagidulin@gmail.com>
@dmitrizagidulin dmitrizagidulin changed the title Add a Selecting on Language section, 'targetLanguage' property. Add a Selecting on Language section, 'inLanguage' property. Oct 13, 2026
Signed-off-by: Dmitri Zagidulin <dzagidulin@gmail.com>

@msporny msporny left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Objection to the inLanguage feature as it stands right now, it feels like we're re-designing Accept-Language and we don't have the expertise to do so in this group (right before CR). What we could do as an alternative:

  • Document that digital wallets are expected to have a default language or preferred language array.
  • Document that those languages are passed into the HTML Render Method so it can make rendering decisions based on language (the suggestion being that this solves ~80% of the use cases). This provides some level of privacy protection to the individual because common languages can be bundled together in the same HTML template.
  • Document that those languages are passed to any fetch of an external resource if the protocol scheme supports it (such as Accept-Language via HTTP).

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants