Skip to content

docs(claude): move frontend i18n rules to src/web/CLAUDE.md - #315

Open
Notaloop763 wants to merge 1 commit into
hydropix:mainfrom
Notaloop763:chore/claude-md-lazy-i18n
Open

Notaloop763 wants to merge 1 commit into
hydropix:mainfrom
Notaloop763:chore/claude-md-lazy-i18n

Conversation

@Notaloop763

Copy link
Copy Markdown
Contributor

Summary

Moves the "Frontend i18n rules" section from the root CLAUDE.md into a new src/web/CLAUDE.md. The section text is unchanged.

Why

Claude Code loads the root CLAUDE.md in every session. A nested CLAUDE.md loads only when Claude works with files under that directory. The i18n rules only apply to src/web/ (templates, JS, and locales under src/web/static/locales/), so they now load only when they are relevant. This saves about 750 tokens of context in every other session (estimated at 4 characters per token).

The rules that apply repo-wide stay in the root file: language policy, secrets, and script organization.

Changes

  • CLAUDE.md: removed the i18n section (34 lines).
  • src/web/CLAUDE.md: new file with a short header and the same section, copied verbatim.

Testing

Docs-only change. Checked that the moved text is identical to the section removed from main (diff shows no differences).

🤖 Generated with Claude Code

The i18n rules only apply to the web frontend, so they now load only
when working under src/web/ instead of in every session.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.

1 participant