Conversation
Internationalization package for Wheels 4.x. JSON-file or database-backed translations with pluralization and parameter interpolation. Mixes into the controller target (covers views as well). Depends on wheels-dev/wheels-i18n#4 landing + v2.0.0 tag before the mirror workflow can fill in tarball + sha256. Refs wheels-dev/wheels#2268. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Contributor
Author
|
Marked as draft. This PR is blocked on two preconditions:
Once both are done, ready this PR for review. The |
bpamiri
added a commit
to wheels-dev/wheels
that referenced
this pull request
Apr 24, 2026
The /packages landing page now renders wheels-i18n and wheels-seo-suite tiles alongside the original four first-party packages (shipped earlier today via wheels-dev/wheels-packages#3 and #4, closes #2268 and #2267). The existing baseline predates those registry entries, so visual-regression reports 34,529 pixels differ. Diff reviewed — only the two new package tiles; layout, typography, header, and existing tiles unchanged. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
bpamiri
added a commit
to wheels-dev/wheels
that referenced
this pull request
Apr 24, 2026
* docs(docs): update packages guide for accuracy and 4.1 reality Closes #2244. The packages.mdx guide was shipped before several key pieces landed: the `wheels packages` CLI, the wheels-i18n and wheels-seo-suite conversions to 4.0 format, and before the `view` mixin-target claim was noticed as unsupported. This refresh brings the guide into sync with reality. Substantive changes to `packages.mdx`: - Remove `view` and `service` from the `provides.mixins` target list — neither is in PackageLoader's allowlist (application,dispatch,controller,mapper,model,base,sqlserver,mysql, postgresql,h2,test plus the specials global/none). Explain that `controller` already covers views since Wheels views run in the controller's variables scope. - Replace the per-method override example's `mixin="view"` with realistic `mixin="model"` and `mixin="none"` examples. - Replace "Until Wheels 4.1 lands / gh repo clone as interim" with the real `wheels packages install|list|search|show|update|remove|registry` CLI that shipped in #2276. - Update first-party package list: drop "wheels-i18n is planned for conversion" (shipped as v2.0.0) and add both wheels-i18n and wheels-seo-suite to the list of shipped packages. - Add dedicated sections: Service providers (register/boot lifecycle with ServiceProviderInterface) and Lazy loading (the `lazy: true` manifest flag for service-only packages). - Rewrite the testing section: replace the broken `directory=vendor.*` URL-param pattern (tracked by #2280) with a BDD spec example and a caution box pointing at the issue, plus guidance to rely on per-package CI. - Rewrite the publishing section with the actual registry submission checklist and flow (public repo, v<version> tag, file-type allowlist, 10 MB cap, PR title, mirror workflow bot-commits tarball+sha256). - Add a `lazy` field entry and mention `dependencies` ordering more explicitly in the manifest reference. Smaller fixes: - `glossary.mdx`: "Mixin target" entry no longer lists the non-existent `view` target. - `upgrading/3x-to-4x.mdx`: update `mixin="view"` annotation example to `mixin="model"` / `mixin="none"`. - `CLAUDE.md`: add a cross-link to the public packages guide and to wheels-packages/CONTRIBUTING.md, and refresh the first-party package list to include wheels-i18n and wheels-seo-suite. No code changes — docs and instructions only. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * test(docs): refresh packages-index visual baseline The /packages landing page now renders wheels-i18n and wheels-seo-suite tiles alongside the original four first-party packages (shipped earlier today via wheels-dev/wheels-packages#3 and #4, closes #2268 and #2267). The existing baseline predates those registry entries, so visual-regression reports 34,529 pixels differ. Diff reviewed — only the two new package tiles; layout, typography, header, and existing tiles unchanged. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds
wheels-i18nto the registry as a Wheels 4.x-compatible package.Depends on wheels-dev/wheels-i18n#4 landing and being tagged as
v2.0.0before the mirror workflow can fill intarballandsha256.Refs wheels-dev/wheels#2268.
What is wheels-i18n?
Internationalization (i18n) package for Wheels 4.x. JSON-file or database-backed translations with pluralization and parameter interpolation. Mixes into the
controllertarget (which covers views, since Wheels views execute in the controller's variables scope).API:
t(),tp(),currentLocale(),changeLocale(),availableLocales().Test plan
validate.ymlpasses (schema check, name uniqueness, source-repo resolvability, tag existence)wheels-i18nv2.0.0 tag lands, the mirror workflow fills intarball+sha256wheels packages install wheels-i18nresolves and installs intovendor/wheels-i18n/mixin="controller"injectionnotify-site.yml→wheels.dev/packages/wheels-i18n)🤖 Generated with Claude Code