Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IdentityProviderBranding field name should provide lang and direction #679

Open
aphillips opened this issue Nov 7, 2024 · 4 comments
Open
Labels
i18n-needs-resolution Issue the Internationalization Group has raised and looks for a response on.

Comments

@aphillips
Copy link

IdentityProviderBranding
https://w3c-fedid.github.io/FedCM/#dictdef-identityproviderbranding
https://w3c-fedid.github.io/FedCM/#dom-identityproviderbranding-name

name, of type USVString
A user-recognizable name for the IDP.

There is no language or direction metadata associated with these natural language string values (see String-Meta and our Best Practices for more info).

@aphillips aphillips added the i18n-needs-resolution Issue the Internationalization Group has raised and looks for a response on. label Nov 7, 2024
@npm1
Copy link
Collaborator

npm1 commented Dec 5, 2024

+1 to Christian's comment in the other issue that generally names are not localizable. Although it can be argued that company names are, they are not directly translateable so the IDP would have to provide a dictionary of languages to names in that language. Is that what you are suggesting?

@aphillips
Copy link
Author

Please note that we are not requesting localizability here, merely that there be a means of associating language and direction metadata with the name so that it can be displayed/pronounced/processed appropriately

@cbiesinger
Copy link
Collaborator

That might more or less work for this issue, but for #680 how do you expect the IDP to provide a language/direction? Not a single website has ever asked me what language or direction my name is in, and I don't even think that question makes sense for names.

@aphillips
Copy link
Author

aphillips commented Dec 5, 2024

Usually it is computed from the user's locale or locale preference. I agree it would be an unusual interface to specifically ask you for the language of your name. The base direction is known (or can be known) from the inputdir of an HTML form (or from other APIs). The language or direction can also be defaulted to some value or set in the case of language to und when completely unknown.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
i18n-needs-resolution Issue the Internationalization Group has raised and looks for a response on.
Projects
None yet
Development

No branches or pull requests

4 participants
@aphillips @cbiesinger @npm1 and others