Loading tutorials
i18n.ts file that calls init with catalogs and a fallback language. It also assumes you know React function components and hooks.2 min readuseTranslation and have a catalog with at least English loaded.2 min readt with a key, and pass variables to messages. Here you will see how plural forms work and why count === 1 ? ... : ... fails.2 min readde-DE is.2 min readi18n.changeLanguage, and can read BCP 47 tags such as en or ar-EG. Changing the text on screen is only half of a locale switch. The <html> element also has to describe the new language.2 min readt handles variables.2 min readlang and dir attributes on the html element in sync. It covers the CSS side: making the layout follow the text direction.2 min readi18n instance, as in the setup chapter. It also assumes you know async/await and that your bundler (Vite or webpack) supports dynamic import().2 min readt(), plural suffixes such as _one and _other, and how a JSON catalog is loaded. Here you will name keys so they stay stable, then add checks that catch gaps before users do.2 min readrenderToString does.2 min read