tolgee-platform icon indicating copy to clipboard operation
tolgee-platform copied to clipboard

Make language + state logic (AND vs. OR) a parameter

Open jdimeo opened this issue 1 year ago • 4 comments

When querying for languages, the filterState parameter has these semantics:

Translation state in the format: languageTag,state. You can use this parameter multiple times. When used with multiple states for same language it is applied with logical OR. When used with multiple languages, it is applied with logical AND. (optional)

In our use case, we want to use multiple languages but have them be treated as an OR. Currently, I'm splitting apart the list of languages and querying them individually and combining them in my code into one "unioned" results object, but this puts extra load on the server when just querying with OR logic would allow me to use a single (paginated) call.

jdimeo avatar Sep 19 '22 13:09 jdimeo

Makes sense!

JanCizmar avatar Sep 19 '22 13:09 JanCizmar

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] avatar Mar 12 '23 02:03 github-actions[bot]

This issue was closed because it has been inactive for 14 days since being marked as stale.

github-actions[bot] avatar Mar 27 '23 01:03 github-actions[bot]

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] avatar May 05 '23 01:05 github-actions[bot]