Skip to content

Support for Multi-language Render Templates #26

@vishwa-vyom

Description

@vishwa-vyom

Context / Problem
In our wallet implementation, we encountered challenges around multi-language support for render templates. The current spec is not explicit about how to associate a render template with a specific language.

We implemented a design where multiple renderMethod objects are configured (one per language). The wallet then provides a UI for users to switch between languages. While this works, it’s unclear if this approach aligns with the spec.

A key UX challenge is how wallets should determine which template to show first. Ideally, the wallet should display the user’s preferred language (based on device or wallet settings) by default, and then allow switching to alternate languages. The current spec doesn’t define how templates are linked to a language, making this prioritization difficult.

Example
We tested this with a credential (farmer VC) that has three languages. Each language uses a separate SVG render template, and the wallet slides between them.

Questions / Proposal

Should the spec explicitly support a way to indicate the language of each render template?

Would it make sense to add a contentLanguage property (mirroring the Content-Language HTTP header) to the template object, so wallets can:

  • Automatically detect the language of a template

  • Prioritize showing the user’s preferred language first

  • Provide fallbacks when the preferred language is not available

Are there best practices for ordering or fallback behavior in multi-language scenarios?

Metadata

Metadata

Assignees

No one assigned

    Labels

    class 4A change that adds a new featurei18n-trackerGroup bringing to attention of Internationalization, or tracked by i18n but not needing response.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions