-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
Allow viewers to override system language #27023
Comments
A simple design could be something like propagating a fragment parameter /cc @ampproject/wg-ui-and-a11y is this generally useful elsewhere? If there's no interest otherwise, we can go ahead with an implementation for stories. Otherwise, we can take additional requirements into consideration, if there are any. |
I haven't seen any specific requests for this here on GitHub or via individual developers using AMP. However, this sounds globally useful outside of AMP. Do we know if any discussions have taken place around this? Or via more people would do this in stories as opposed to other web content? |
We have specific requests for this in the stories context, due to the ecosystem-wide swipe-to-next-story paradigm (and the desire to keep the system language the same across stories) |
I think the model to get this working on standard AMP would be very different from stories.
Outside Like @nainar mentioned, the overall i18n problem is not particularly severe for other components (maybe in the future?) since they rarely render labeled chrome like Since the models for stories and other document types don't match, my request is to do one of these options:
|
Can we do Option C: a forked implementation using a non-namespaced parameter? i.e. we go ahead now, using |
@newmuis The problem is that a fragment can't work for non-render blocking cases :) By forked implementation, what level are we talking about? |
It can work for anything that is rendered after the initial page load, or anything that we transform on the cache. But, mostly I want to YAGNI and make sure we don't block on considerations for features that don't exist, especially if it's possible to migrate down the line 🙂 |
Reassigned to @Enriqe |
Stories currently use the document language to internationalize the system layer. We should allow viewers to override the document language, if desired.
This can just be a fragment parameter e.g.
#lang=es
The text was updated successfully, but these errors were encountered: