Skip to content

v3.4.0: one protocol, five new SDKs

Latest

Choose a tag to compare

@arnaudambro arnaudambro released this 27 Aug 04:32
· 37 commits to main since this release

Five new SDKs speak the same wire protocol as React and Node: same options
(context, replace, namespace, forceTemporary, originLanguage), same storage
keys, same dashboard and API key. An app that migrates keeps its cache and
its device id.

New packages

  • i18n-keyless-vue: Vue 3 plugin, , useI18nKeyless(), useTranslation(),
    localized SSR (getServerTranslations, runWithI18nKeyless).
  • i18n-keyless-angular: standalone APIs, signals, zoneless. provideI18nKeyless(),
    , the t pipe, I18nKeylessService, SSR via provideI18nKeylessServer().
    Built with ngc, Ivy partial, AOT-ready.
  • i18n-keyless-browser: framework-free. Plain store, translateDom() for
    data-i18n, the web component, and an ./auto script-tag entry.
    Works with Svelte, Alpine, htmx, jQuery and plain HTML.
  • i18n-keyless/laravel (Composer, PHP >= 8.2, Laravel 11 to 13): your existing
    __('...') calls resolve through the API. Two .env lines to start.
  • i18n_keyless (pub.dev, Flutter >= 3.27): I18nKeylessClient, the T widget,
    context.t(), Lang enum, SharedPreferences or memory storage.

Protocol and conformance

  • docs/PROTOCOL.md: the language-neutral wire protocol, verified against the
    API source.
  • conformance/vectors/*.json: 17 vector files replayed by the core, Laravel
    and Flutter test suites.
  • docs/PORT_CHECKLIST.md: what a new port must ship.

Core

  • New sdk runtime labels: vue-client/server, angular-client/server, browser,
    laravel, flutter. isServerRuntime() decides who sends a device id.
  • New pure helpers exported for ports (storageKeyFor, queueIdFor, applyReplace,
    buildDictionaryUrl, isRetryableStatus, ...). No behaviour change for
    existing callers.

Fixed

  • Node: the translate response's numeric row id was cached as the Indonesian
    ("id") translation of every key. The filter now requires a non-empty string.

Examples: examples/vue-vite, examples/angular, examples/browser,
examples/laravel. Full details in CHANGELOG.md.