Skip to content

Conversation

@Prospector
Copy link
Member

@Prospector Prospector commented Dec 24, 2025

This pull request migrates the frontend internationalization (i18n) system from the deprecated @vintl/vintl library to a new stack based on vue-i18n and the i18n utilities provided by @modrinth/ui.

  • Replaces @vintl/vintl with vue-i18n and intl-messageformat, and replaces all usage of @vintl/vintl across the codebase with composable wrapper from @modrinth/ui
  • Refactors all component and module imports to use i18n helpers (defineMessage, defineMessages, useVIntl, etc.) from @modrinth/ui instead of @vintl/vintl, and updates related type imports.

  • Languages must be manually added - I think enabling languages when they hit the 80% complete threshold on Crowdin is probably the best idea here.
  • Decided not to rename the final i18n composable away from useVIntl as it was easier to migrate.

@IMB11 IMB11 changed the title Sample lang refactor for reference devex: migrate to vue-i18n Dec 26, 2025
@IMB11 IMB11 self-assigned this Dec 26, 2025
@IMB11 IMB11 requested a review from a team December 26, 2025 18:41
@IMB11 IMB11 marked this pull request as ready for review December 26, 2025 19:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants