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

Return translated values #935

Open
tomasciccola opened this issue Oct 22, 2024 · 2 comments
Open

Return translated values #935

tomasciccola opened this issue Oct 22, 2024 · 2 comments

Comments

@tomasciccola
Copy link
Contributor

Description

Currently, when listing observations, tags associated with them are return without translation. Returning the translated value of tags (but also additional translated values, see 934 would be helpful.
A first version of this would be just returning the translated values of the language used by the user that recorded the observation. A better version of this would be returning all the translations for each value

@gmaclennan
Copy link
Member

gmaclennan commented Oct 22, 2024

Could you explain the use-case for needing the data in the language used by the user, or needing all translations, as opposed to being able to specify the translation language via the REST API the same as we do via the regular API? ping @rudokemper

@rudokemper
Copy link
Member

There are 2 use cases that I have in mind:

  1. Retrieving translation strings for a specific language to be able to use on front ends. I think this need can be met by specifying the translation language via the REST API.

  2. Retrieving all translation strings as a way to comprehensively archive a CoMapeo project in all dimensions - including config design in addition to collected data. The motivation here is to get as much of the CoMapeo project as possible, as we might not be able to anticipate future uses. For example, today we might need Tiriyo translations for a specific front end / output, but if the config was also translated to Wayana, then that may be useful years from now, and it would be good to retrieve that as well.

To illustrate further, the same logic would apply to a possible API feature to fetch icons. It would be nice to have these to use on front ends like a map view, but also to archive for safekeeping and future uses.

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

3 participants