Skip to main content

siyak_flutter 0.1.0 copy "siyak_flutter: ^0.1.0" to clipboard
siyak_flutter: ^0.1.0 copied to clipboard

Context-aware translation for Flutter: a cache-first t() that never blocks, with background batching and a persistent LRU cache.

Changelog #

0.1.0 #

First packaging of the SIYAK Flutter client.

  • Siyak.init(apiKey:, endpoint:, target:) — no host ships inside the SDK; endpoint is required.
  • t() is synchronous and cache-first: a miss renders the source string now and repaints when the batch lands (translationRevision).
  • translate() awaits one string through POST /v1/translate; t() misses go out debounced and batched through POST /v1/translate/batch.
  • preload() pulls the approved bundle from GET /v1/strings?target=… at startup.
  • Persistent LRU cache via CacheStore (SharedPreferencesCacheStore, InMemoryCacheStore); a string already hydrated from disk is never charged a second time.
  • Typed failures park the session instead of hammering a metered connection, and surface as a machine-readable code on lastError — translations never fail visibly.
  • Oversize strings are truncated to the Worker's 500-character cap rather than rejected; control and bidi-override characters are stripped before sending, and </> from contexts.
0
likes
160
points
19
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Context-aware translation for Flutter: a cache-first t() that never blocks, with background batching and a persistent LRU cache.

Homepage

Topics

#i18n #localization #translation #arabic

License

MIT (license)

Dependencies

flutter, http, shared_preferences

More

Packages that depend on siyak_flutter