| name | i18n-pass |
| description | Convert hard-coded English text in changed Vue components to the @modrinth/ui localization system. Use for an i18n pass, untranslated-string review, pull request, or component migration. |
Do an Internationalization Pass
Read the applicable AGENTS.md files before you edit code.
Read the internationalization standard in full.
- Identify the scope from the request.
- For a pull request, use
gh pr diff <number> to identify changed files.
- For a file path, inspect that file.
- When the request gives no scope, inspect the current uncommitted diff.
- Limit the pass to changed
.vue files.
- Find user-visible text in templates and scripts.
Check inner text, alt, placeholder, aria-label, buttons, tooltips, notifications, dropdown labels, and error messages.
Do not change dynamic expressions, HTML tag names, CSS classes, internal identifiers, or log messages.
- Define stable message IDs with
defineMessage or defineMessages.
- Replace simple text with
formatMessage() calls.
- Use
<IntlFormatted> for text that contains links or markup.
- Use ICU selections and plurals when grammar depends on a value.
- Add a space before
}} when an ICU placeholder ends at the Vue delimiter.
- Do not change component logic, layout, or reactivity.
- Do not edit localization JSON files. The user maintains those files.
- Check the changed templates again for hard-coded English text.
Run only the checks that the user or the applicable AGENTS.md permits.