Git Product home page Git Product logo

Comments (5)

gberaudo avatar gberaudo commented on August 29, 2024

This could be done this way:

  • during registration, read the current language of the UI and send it together with other info;
  • store it in user table;
  • use it for sending emails...
  • each time the user change the language a request is sent to the API to update the state.

from v6_api.

tsauerwein avatar tsauerwein commented on August 29, 2024

And:

  • when logging in, the language is sent to the UI so that the interface language can be set accordingly.

from v6_api.

asaunier avatar asaunier commented on August 29, 2024

Could this "user prefered language" attribute be used to serve documents when the language is not specified?
For instance in v5, there are links such as http://www.camptocamp.org/summits/37355 that will redirect to http://www.camptocamp.org/summits/37355/fr/mont-blanc depending on the available locales, the UI interface language or some priority list of languages.

Of course for anonymous users we would not have such a "user prefered language" attribute and should use a default lang.

from v6_api.

tsauerwein avatar tsauerwein commented on August 29, 2024

On the ui server side you usually do not have the authentication token (only when doing xhr requests where the token is explicitly set in the headers).

But the current interface language is stored in a cookie, which is already used for list views, see c2corg/v6_ui#73.

from v6_api.

asaunier avatar asaunier commented on August 29, 2024

Can we close this issue @gberaudo ?

from v6_api.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.