New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: i18n support #1446
feat: i18n support #1446
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
We can also add GitHub actions to sync strings at regular intervals. https://github.com/jbx-protocol/juice-interface/blob/main/.github/workflows/crowdin-download.yml |
This comment was marked as resolved.
This comment was marked as resolved.
Fixed the Vercel deployment and changed from Czech to LinguiJS' built-in pseudolocalization (fake-language used for testing). The feature can now be tested by opening Lenster website on the Vercel deployment and switching to PseudoLanguage under Settings>Account. |
Amazing work @foolo it works smooth |
Co-authored-by: bigint <69431456+bigint@users.noreply.github.com>
copy impl from heyxyz/hey#1446
copy impl from heyxyz/hey#1446
* chore: setup lingui copy impl from heyxyz/hey#1446 * refactor: helpers * chore: quick test * refactor: lingui config * chore: wip * chore: update configs * chore: compile i18n * chore: reset lock file * chore: lock file * fix: cspell * refactor: types * refactor: message * chore: i18n * chore: i18n * chore: i18n * fix: typo
What does this PR do?
Port to LinguiJS and add Crowdin integration.
Fixes #1343
The feature can be tested on Vercel deployment, by switching to PseudoLanguage under Settings > Account > Locale settings. (About pseudolocalization: https://lingui.js.org/guides/pseudolocalization.html )
Screen capture: https://user-images.githubusercontent.com/667227/209463143-41576848-31d9-4267-a7f4-9f388abd1d04.mp4
Temporary Crowdin project: https://crowdin.com/project/lenstertest
Important files in this PR:
apps/web/src/lib/i18n.ts
- Helper for loading and switching locales on-the-flyapps/web/src/locales/en/messages.po
- English source strings, uploaded to Crowdinapps/web/src/locales/*/messages.po
- Translated strings, will be updated with translations from Crowdinapps/web/package.json
- added/updated scripts (seeI18N.md
)apps/web/src/components/Settings/Account/Language.tsx
- Settings pageI18N.md
- i18n readmeapps/web/.babelrc
,apps/web/.linguirc
,apps/web/crowdin.yml
- config files