Skip to content

changeLanguageFx since v23.2.0

An Effect that can be called with a language code to change the current language.

ts
const { changeLanguageFx } = createI18nextIntegration({
  /* ... */
});

sample({
  clock: someButtonClicked,
  fn: () => 'en',
  target: changeLanguageFx,
});

Released under the MIT License.