Skip to content

Releases: robisim74/qwik-speak

v0.12.0

04 May 20:48
Compare
Choose a tag to compare
  • Update Qwik to v1 fac0340
  • Refactor: useTranslate under the hood 8b5533d

BREAKING CHANGES

  • $translate function (and other functions) no longer accepts the Speak context as an argument: outside the component$ the new function $inlineTranslate must be used

FEATURES

  • Added useTranslate$ which returns the translate function as QRL

More info here.

v0.11.2...v0.12.0

v0.11.2

26 Apr 20:35
Compare
Choose a tag to compare
  • Update Qwik to v0.104.0 70e7044
  • Docs: use plugin.ts dc0b7f0
  • Fix(tools): handle void 0 arguments 5b95a5c
  • Tools(extract): pipeline refactoring a5fc955

v0.11.1...v0.11.2

v0.11.1

16 Apr 16:41
Compare
Choose a tag to compare
  • Update Qwik to v.0.102.0 fba5f86
  • Docs: add Translation functions & cleanup dbb94d2
  • Refactor: make assets optional 325eeda

Recommendations:

  • Define the type for translationData: const translationData = import.meta.glob<Translation>('/i18n/**/*.json');
  • Turn off qwik/use-method-usage linter rule until this issue is resolved: QwikDev/qwik#3787

v0.11.0...v0.11.1

v0.11.0

09 Apr 17:20
Compare
Choose a tag to compare
  • App: refactor style fb01b70
  • Fix: runtime assets 5454237
  • Feat: add displayName Intl function f91c085
  • Update Qwik to v.0.101.0 6f8cfd5
  • Docs: explain Speak component 3734821
  • Refactor: set initial state as object (no reactive) 3381275
  • Docs: update examples to catch errors ddcdbb6

v0.10.1...v0.11.0

v0.10.1

04 Apr 14:50
Compare
Choose a tag to compare
  • Fix: non-serialization of unscoped json (#41) 65723c1

v0.10.0...v0.10.1

v0.10.0

31 Mar 15:54
Compare
Choose a tag to compare
  • Update Qwik to v.0.100.0 09b820a
  • Merge pull request #36 from ahnpnl/patch-1 6b00eeb
  • App: bundle translation files & Cloudflare pages 738cd30

Thanks to: @ahnpnl

BREAKING CHANGES

  • Default assetsPath option in Inline plugin & Extract command now is 'i18n' and not 'public/i18n'
  • Due to changes in Qwik v0.100, it is recommended to move the implementation of loadTranslation$ into a separate file (like speak-functions.ts) to allow the Qwik compiler to respect the initialization order of the functions

v0.9.1...v0.10.0

v0.9.1

24 Mar 16:46
Compare
Choose a tag to compare

v0.9.0...v0.9.1

v0.9.0

22 Mar 21:53
Compare
Choose a tag to compare
  • Update Qwik to v0.23.0 51cd80a
  • Merge pull request #35 from robisim74/split-chunks 774ae87

BREAKING CHANGES
To improve performance, the changeLocale function has been removed and it is no longer possible to change locale at runtime without navigating/reloading the page.

To be compliant with i18n Qwik documentation, Qwik Speak Inline plugin generates chunks for each language, and the loading of translation files takes place only in dev mode or on server (except for the new runtimeAssets).

So you must:

  • Remove changeLocale function and navigate/reload the page to change locale
  • Move your runtime assets into the new option runtimeAssets
  • Remove isDev and other checks from loadTranslation$
  • Provide the base URL for the chunks in entry.ssr.tsx:
export function extractBase({ serverData }: RenderOptions): string {
  if (!isDev && serverData?.locale) {
    return '/build/' + serverData.locale;
  } else {
    return '/build';
  }
}

export default function (opts: RenderToStreamOptions) {
  return renderToStream(<Root />, {
    manifest,
    ...opts,
    // Determine the base URL for the client code
    base: extractBase,
  });
}

Ses Qwik Speak Inline Vite plugin and tutorial for more details.

v0.8.0...v0.9.0

v0.8.0

16 Mar 20:28
Compare
Choose a tag to compare
  • Update Qwik to v0.22.0 238ea1a
  • Fix: $plural inlining cdd184e
  • Feat($plural): support for param interpolation (#32) 1833026
  • Tools(extract): support multiple paths c625af7

v0.7.3...v0.8.0

v0.7.3

11 Mar 17:47
Compare
Choose a tag to compare
  • Update Qwik to v0.21.0 12ef762
  • App: workaround for Qwik locale (#26) 460558f
  • Merge pull request #31 from robisim74/project_structure 903f6ce

v0.7.2...v0.7.3