We recommend using Lingui to create i18n applications.
You can choose a template with the i18n option when creating a project using create-pareto
.
create lingui.config.js
in the root directory of your project.
create babel.config.js
in the root directory of your project.
update your package.json
file.
run pnpm extract
to extract messages.
run pnpm compile
to compile messages.
use Trans
of @lingui/macro
to translate your text.
create or update global.d.ts
in the root directory of your project.
create i18n.ts
in the root directory of your project.
modify the server-entry.tsx
file in the root directory of your project.
modify client-entry.tsx
file in the root directory of your project.