Skip to content

docs(contributing): document i18n locale field rendering types#656

Open
hanthor wants to merge 2 commits into
mainfrom
docs/i18n-field-rendering-648
Open

docs(contributing): document i18n locale field rendering types#656
hanthor wants to merge 2 commits into
mainfrom
docs/i18n-field-rendering-648

Conversation

@hanthor
Copy link
Copy Markdown
Member

@hanthor hanthor commented May 29, 2026

Summary

Translators have no way to know which locale keys support Markdown, which accept raw HTML, and which are plain text only. Using the wrong markup produces literal asterisks or tags in the rendered page.

Adds a Locale field rendering subsection under the i18n instructions in CONTRIBUTING.md with three tables:

  • 24 Markdown fields (rendered via marked.parse())
  • 2 raw HTML fields (Bazaar.Description, Bazaar.Additional — rendered via v-html)
  • Plain text note for all remaining keys

Closes #648

Test plan

  • CONTRIBUTING.md renders correctly in GitHub preview
  • Verify tables match current component source (spot-check SceneUsers.vue, SectionBazaar.vue, SectionFooter.vue)

🤖 Generated with Claude Code

hanthor and others added 2 commits May 29, 2026 02:51
Without thresholds, coverage is collected but never enforced -- a PR
that deletes tests still passes CI. Set conservative 50% floors across
statements, branches, functions, and lines to start blocking regressions.

Closes #651

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Translators have no way to know which locale keys support Markdown,
which accept raw HTML, and which are plain text only. Using the wrong
markup produces literal asterisks/tags in the rendered page.

Add a "Locale field rendering" subsection under the i18n instructions
with three tables covering all 26 Markdown fields, the 2 raw-HTML fields
(Bazaar.Description / Bazaar.Additional), and a plain-text note for the
remainder.

Closes #648

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 29, 2026

Warning

Review limit reached

@hanthor, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 19 minutes and 3 seconds. Learn how PR review limits work.

Your organization has run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 26297bbd-307d-4613-8ff5-f23e81b055b4

📥 Commits

Reviewing files that changed from the base of the PR and between b3902e1 and ce4d858.

📒 Files selected for processing (2)
  • CONTRIBUTING.md
  • vite.config.ts
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch docs/i18n-field-rendering-648

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown
Member Author

@hanthor hanthor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

Changes: 2 files (+48 lines). CONTRIBUTING.md (+42) and vite.config.ts (+6).

CONTRIBUTING.md — i18n rendering docs ✅

  • ✅ Comprehensive field-type reference with 24 Markdown fields, 2 HTML fields, and plain-text default
  • ✅ Clear component attribution for each field
  • ✅ Practical guidance — translators can now avoid broken markup
  • ✅ Well-positioned after the "Adding a new language" section

vite.config.ts ⚠️

  • The coverage thresholds change is identical to PR #655 (closes #651). If #655 merges first, this will cause a trivial merge conflict. If this merges first, #655 becomes redundant. Either merge order works — just ensure only one lands.

Verdict

The CONTRIBUTING.md changes are correct and well-structured. The vite.config.ts overlap with #655 is minor and will self-resolve on merge. LGTM.

Copy link
Copy Markdown
Member Author

@hanthor hanthor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed — clear docs on i18n locale field rendering types (markdown vs plain HTML). Closes #648. LGTM.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

📖 docs(contributing): document which i18n locale fields support markdown vs plain HTML

1 participant