Loading tutorials
useTranslation. It assumes you can write React function components and hooks, and that you have the react-i18next setup from the previous chapter: an i18n.ts file with two catalogs, English as the fallback, and initReactI18next regis5 min readi18n instance with a catalog, and components that call t from useTranslation. You should be comfortable with TypeScript and with the shape of a message catalog.4 min readuseTranslation working, as in the earlier chapters. It also assumes you can read TypeScript and run a script in Node 18 or later.5 min readuseMemo. Here you will replace hand-built number, date and list strings with the browser's Intl APIs, so the output follows the active4 min readreact-i18next setup from the earlier chapters. That setup has an i18n instanc5 min read<html> element that tell browsers and assistive technology which language and text direction the page uses. It assumes you can write React function components and hooks, have react-i18next set up as in the earlier chapters, and know basic HTML and CSS.6 min readuseTranslation and t, and can use interpolation ({{name}}). It also assumes you are comfortable with React elements and props.6 min readlang and dir on the html element (from the previous chapters), and basic CSS layout knowledge with flexbox. By the end you will be able to make a layout work in both reading directions without writing5 min readi18n.changeLanguage already wired to a language switcher.5 min readuseTranslation chapters), you know how plural suffix5 min readrender, userEvent), have a test runner such as Vitest or Jest, and have the useTranslation, Trans and LanguageSwitcher examples from the earlier chapters. The example4 min readrenderToString.5 min read