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

Obtain the language id #18

Open
84564221 opened this issue Mar 29, 2015 · 2 comments
Open

Obtain the language id #18

84564221 opened this issue Mar 29, 2015 · 2 comments

Comments

@84564221
Copy link

I'm looking for a working solution, to obtain the url to the translation page. Unfortunately, the API does not provide the required language id.

The API should provide some url's to translation pages, like GitHub does:

GET https://platform.api.onesky.io/1/projects/:project_id/translations/status

Expected results:

{
    "meta": {
        "status": 200
    },
    "data": {
        "file_name": "string.po",
        "locale": {
          ...
        },
        "html_url": "http://.../translate/project/project/:project/language/:id", // <--
        "progress": "92%",
          ...
    }
}
@VLMH
Copy link
Contributor

VLMH commented Apr 6, 2015

I am sorry. Could you please explain more on your use case?
Are you asking for a response in other language?

@VLMH
Copy link
Contributor

VLMH commented Apr 8, 2015

I see. First of all, the endpoint of GET translations/status is to check the progress of translations. Mainly for admin to check if the translations are completed or ready to publish. Therefore, I think the URL to the editor may not appropriate.

In addition, since we accept locale instead of language ID at API, we tend to hide the language ID. May I know what you want to achieve from generating URL of the editor?

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

No branches or pull requests

2 participants