-
Notifications
You must be signed in to change notification settings - Fork 61
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
[questions/qa-when-lang-neg] Language negotiation using client-side JavaScript #545
Comments
There are more approaches than using |
Is there any other approach in the browser? If not, we can limit the scope of this article to browsers. If necessary, we can write another general article on language negotiation and link to this article in the new article. |
A simpler way to improve the article might be to change the heading to "When to use HTTP language negotiation". @xfq, i understand what |
Currently, when you open a ReSpec document, you may see errors/warnings in the upper right corner. When you click the "error/warning pill", you will see errors in English. If ReSpec supports multiple languages, it might use The ReSpec example might not be very good, tho. For some web applications, the entire application is generated using JavaScript. In this case, Here are some real code examples for your reference: |
[source] (https://www.w3.org/International/questions/qa-when-lang-neg.en.html) [en]
In addition to the HTTP functions mentioned above, I think there's another language negotiation approach, which is navigator.languages. The advantage of this approach is that it does not require server-side support. The disadvantage is that it can only be used with JavaScript enabled.
We can mention it in this article, at least briefly.
The text was updated successfully, but these errors were encountered: