tolgee-platform
tolgee-platform copied to clipboard
Make language + state logic (AND vs. OR) a parameter
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.
Makes sense!
This issue is stale because it has been open for 30 days with no activity.
This issue was closed because it has been inactive for 14 days since being marked as stale.
This issue is stale because it has been open for 30 days with no activity.