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

Add an API to retrieve language files #73

Open
this opened this issue Apr 23, 2018 · 0 comments
Open

Add an API to retrieve language files #73

this opened this issue Apr 23, 2018 · 0 comments

Comments

@this
Copy link
Member

this commented Apr 23, 2018

Description:
There should be an API to retrieve messages for a given locale.

  • Messages should be read from <APP>/languages/<LOCALE>.json.
  • API
    • GET /<APP_CONTEXT_PATH>/apis/languages/ will return all available locales
    • GET /<APP_CONTEXT_PATH>/apis/languages/<LOCALE> will return messages of the specified locale read from <APP>/languages/<LOCALE>.json
    • GET /<APP_CONTEXT_PATH>/apis/languages/current will return messages of the locale computed from the Accept-Language HTTP header
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant