Replies: 1 comment 4 replies
|
Hi @Orlinskas! Thanks for reaching out! ^^ For this use case, I'd recommend setting up Content Delivery. You configure it in your project settings and get a URL that serves your translations. You can set it to auto-publish whenever translations change, so the URL is always up to date. Your app can then use standard HTTP caching against that URL - It's also worth noting that the export endpoint ( Hope this helps! Let me know if you have other questions! |
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi Tolgee team,
We're a mobile development team building a KMP (Kotlin Multiplatform) app for iOS and Android. We're using the Tolgee REST API to fetch translations at runtime and cache them on the
device.
This is a non-urgent technical question about the API.
The problem:
We want to avoid fetching all translation keys on every app launch. Instead, we'd like to check whether translations have been updated since our last fetch, and only re-download them
if something has changed.
What we tried:
We're currently hitting GET /v2/projects/{id}/activity?size=1&sort=timestamp,desc to get the latest activity timestamp, then comparing it with a locally stored value. It works, but
we're not sure if this is the intended use case for that endpoint, and we're not confident about the sort behavior.
The question:
Is there a recommended lightweight way to detect whether translations have been updated — something like a last-modified timestamp, a content hash, or an ETag — without fetching all
the keys?
Any guidance would be appreciated.
Thanks!
All reactions