This PR adds internationalization (i18n) support to the Mirrorful Editor Dashboard. It allows users to switch between different languages and translates all text strings in the dashboard accordingly.
Summary of Changes
Added the i18n library as a dependency in the packages/mirrorful/editor/package.json file.
Created language files for English (packages/mirrorful/editor/src/locales/en.json) and Spanish (packages/mirrorful/editor/src/locales/es.json).
Modified the packages/mirrorful/editor/src/pages/_app.tsx file to initialize the i18n library with the language files and replace hardcoded text strings with references to the corresponding keys in the language files.
Added a language selector to the packages/mirrorful/editor/src/components/LayoutWrapper.tsx file, allowing users to switch between different languages and update the dashboard's text strings accordingly.
Please review and merge this PR to enable internationalization support in the Mirrorful Editor Dashboard.
Fixes #1.
To checkout this PR branch, run the following command in your terminal:
Description
This PR adds internationalization (i18n) support to the Mirrorful Editor Dashboard. It allows users to switch between different languages and translates all text strings in the dashboard accordingly.
Summary of Changes
packages/mirrorful/editor/package.json
file.packages/mirrorful/editor/src/locales/en.json
) and Spanish (packages/mirrorful/editor/src/locales/es.json
).packages/mirrorful/editor/src/pages/_app.tsx
file to initialize the i18n library with the language files and replace hardcoded text strings with references to the corresponding keys in the language files.packages/mirrorful/editor/src/components/LayoutWrapper.tsx
file, allowing users to switch between different languages and update the dashboard's text strings accordingly.Please review and merge this PR to enable internationalization support in the Mirrorful Editor Dashboard.
Fixes #1.
To checkout this PR branch, run the following command in your terminal: