mirror of
https://github.com/modrinth/code.git
synced 2026-08-25 00:55:25 +00:00
1.5 KiB
1.5 KiB
name, description
| name | description |
|---|---|
| i18n-pass | 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
.vuefiles. - 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
defineMessageordefineMessages. - 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.