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

ui: add a new URL to change the language #569

Merged
merged 1 commit into from
Oct 28, 2019
Merged

Conversation

jma
Copy link
Contributor

@jma jma commented Oct 18, 2019

  • Adds a new HTTP endpoint with a JSON POST or PUT method to change the
    session language: this will be usefull to change the language from a
    pure js application.

Co-Authored-by: Johnny Mariéthoz [email protected]

Why are you opening this PR?

  • this will allows future angular application to change the language of the frontend interface.

How to test?

  • ./scripts/bootstrap && ./scripts/setup (not required if this was done on the dev branch)
  • restart the server and try curl -d '{"lang":"fr"}' -H "Content-Type: application/json" -X POST http://localhost:5000/language, the language should be changed.

Code review check list

  • Commit message template compliance.
  • Commit message without typos.
  • File names.
  • Functions names.
  • Functions docstrings.
  • Unnecessary commited files?

* Adds a new HTTP endpoint with a JSON POST or PUT method to change the
session language: this will be usefull to change the language from a
pure js application.

Co-Authored-by: Johnny Mariéthoz <[email protected]>
@jma jma merged commit b58a875 into rero:dev Oct 28, 2019
@jma jma deleted the maj-http-language branch December 11, 2019 09:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants