-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Project: Paraglide JS 2.0 (variants, pluralization, gendering) #201
Project: Paraglide JS 2.0 (variants, pluralization, gendering) #201
Comments
This could be fixed: #146 (it is really annoying) |
@juliomuhlbauer added to the project that comes after paraglide js 2.0 (metaframework overhaul) #217 |
Progress is halted until the message format plugin, which most paraglide users use, is updated to v3 #221. While updating the message format to v3, the data model showed inconsistencies, see opral/inlang-sdk#195. Number 1 prio is to resolve the data model problems. Work on paralglide 2.0 will continue afterward |
From discord https://discord.com/channels/897438559458430986/1094614450004303993/1286100529210064960 End to end import, CRUD, export achieved Milestone achieved. We are now entering the phase of taking the observations from an end to end workflow to fix bugs and do adjustemnts where useful/required Uploading CleanShot 2024-09-18 at 19.00.29.mp4… |
Work on paraglide 2.0 continues. Might have a pre-release by the end of the day!
|
Update: The tests are passing now, but a release of Paraglide JS 2.0 is postponed until we have lix 1.0, which powers Paraglide JS. That's likely in January or February.
Shifting.the.primary.focus.from.Inlang.to.Lix.mp4 |
This comment has been minimized.
This comment has been minimized.
Paraglide JS 2.0 Beta has been released
Here are examples to get started https://github.com/opral/monorepo/tree/main/inlang/packages/paraglide-js/examples Paraglide.js.2.0.Beta.Overview.-converted.mp4 |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Question about the API. Should Paraglide JS 2.0 👀 prefix import { availableLocales, type AvailableLocale, assertAvailableLocale } from "./paraglide/runtime.js"
const locale: AvailableLocale = "en"
if (availableLocales.includes("de")){
//
}
const x = assertAvailableLocale("fr") 🚀 or drop the import { locales, type Locale, assertLocale } from "./paraglide/runtime.js"
const locale: Locale = "en"
if (locales.includes("de")){
//
}
const x = assertLocale("fr") Vote with 👀 for |
Gonna go with a bundled version of path-to-regex for #359. I won't work tomorrow and Thursday on Paraglide 2.0 as I am attending a conference. A release candidate at the end of the week is thereby unlikely but a new beta with the pathname API on Friday is likely. Navigating.Pathname.API.Challenges.mp4 |
URL based localization (pathname, domain based, multi-tenancy) likely nailed!I spent over 1 week on coming up with this API, and I think it nails any URL-based use case. Will make a decision tomorrow on whether to use URLPattern or path-to-regexp v8, which depends on pillarjs/path-to-regexp#349
Next steps
URL-Based.Localization.API.Update.-converted.mp4 |
Any chance that #164 will land in 2.0? |
@nosovk replied in #164 (comment) |
#378 is shipped 🛥. This was the last big development effort that was needed. Next up are simple bugfixes or features and write documentation. GA release by the end of February (2 weeks) is on track. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Implemented
|
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
automatic redirects with
|
This comment has been minimized.
This comment has been minimized.
Nesting and arbitrary key names support implementedSurprise for v2. Long time awaited nesting of keys is now supported #285.
import { m } from "./paraglide/messages.js";
console.log(m["nested.key"]()); You can even use emojis import { m } from "./paraglide/messages.js"
m["🍌"]() |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Paraglide JS GA release this or early next weekYou can adopt Paraglide JS 2.0 already. The latest beta releases are stable. The remaining tasks are mostly adding feature for SSG and creating a benchmark suite to test an experimental per locale splitting #425. Among the open issues: |
Context
This issue serves as "subscribe here to stay up to date with paraglide js 2.0".
Changelog
Tasks/issues
See issues with the "v2.0" label
The text was updated successfully, but these errors were encountered: