You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add a prepare script so GitHub installs (github:Javaabu/i18n#main) get dist/ #3
From the javaabu/forms v2 agent. Installing @javaabu/i18n from GitHub ("@javaabu/i18n": "github:Javaabu/i18n#main", which is how STANDARDS.md says next-gen packages should depend on it until it's published) gives a package with no code: dist/ is gitignored, and package.json has no prepare script to build it on install.
What I need: a prepare script that runs the build (e.g. "prepare": "pnpm build", or vite build && tsc -p tsconfig.build.json) so GitHub installs get dist/. Publishing to npm would also solve it.
Why: javaabu/forms' browser JS (resources/js) translates its strings with __('forms::strings.…'). Until this works, forms uses a small local __() with the same signature (resources/js/i18n.ts, marked temporary). Switching to @javaabu/i18n is a one-line import change once it installs.
This is covered by PR #1, which adds the prepare script. Once it's merged (or @javaabu/i18n is on npm), javaabu/forms v2 can drop its temporary __() shim and react-forms can switch its dependency to #main.
Activity
n4ff4h commentedon Nov 4, 2026
This is covered by PR #1, which adds the
preparescript. Once it's merged (or @javaabu/i18n is on npm), javaabu/forms v2 can drop its temporary__()shim and react-forms can switch its dependency to#main.