Loris Sigrist π¨π
@loris_sigrist
Followers
201
Following
2K
Media
68
Statuses
309
Software Developer π§π»βπ» Part time mad scientist β‘οΈ
π¨π
Joined January 2022
**Introducing** The easiest way to use Paraglide in NextJS to build an internationalized App. π¨ A breeze to set up - no need to change your `app/` folder π¦Built for RSC πͺ Supports both App & Pages router π€ SEO friendly out of the box Info below π
10
15
180
Great insights from @loris_sigrist on #React Server Components for improved internationalization solutions. #TechConference #ReactJS
https://t.co/wBpJFo8tPm
0
1
3
This is useful if you - want to rework a package, but don't want to update every consumer upfront. You can temporarily have both versions of the package to ease migration - want to be able to publish (security)-patches to legacy versions of your package
0
0
0
Packages in your workspace can import any version of the package using `workspace:<semver-range>`
1
0
0
pnpm allows you to have multiple packages with the same name in a workspace. Use this to keep multiple versions of your package "alive". When you start work on a new major version, copy the package folder & bump the version number. Then work in the new folder.
1
0
0
Have you ever wanted to rework a package in your monorepo but still want to keep the old version around for patches while you migrate? If you're using pnpm workspaces, do it like this π§΅
1
1
4
The upcoming version of Paraglide-Next adds support for typedRoutes. Get autocompletion on Links and useRouter
1
1
11
Anyways, JS can be goofy, I just have to deal with it
0
0
0
You could argue this makes sense since a raw buffer doesn't have an "encoding". However, in most people's mental model "encoding" just means "interpret the data like this". In that sense, "no encoding" still constitutes as an encoding; the identity encoding
1
0
0
If you want `readFile` to return a Buffer with the raw binary data you need to omit the second argument entirely
1
0
0
Why? `encoding: "binary"` is an alias for `encoding: "latin1"`. "latin1" is "binary" because there are 256 characters in so it uses 1 byter per char. This makes some sense from a historical standpoint, but today it just seems ridiculous since everyone defaults to utf-8
1
0
0
I don't really care for most weird JS type behavior but this one is just vile
1
0
1
I don't like when tools advertise `${thing} at the speed of though` because I don't really think that fast
0
0
6
PSA If `pnpm/action-setup` is failing in your Github actions you need to upgrade it to `pnpm/action-setup@v4`
0
0
1
I wrote a little threadπ§΅ with the current i18n SEO best practices https://t.co/Zhl4W1jjKK
Good SEO on sites with multiple languages is hard Getting it wrong can seriously hurt your search rankings. Getting it right can put you at the top of the search across many countries. Here is how to do it right π
0
0
6
I really like the idea of Chrome's `windowβ.ai` api. It enables frontends to call models installed locally on the users's device. However I am a bit worried about locking in an interface for how we call models. This is still an active area of experimentation.
0
0
2
happening in ~25 mins π come by, bring questions etc
Reminder: The next dev vlog with @Rich_Harris will be streamed tomorrow.
1
7
67
Really torn between static (json) & dynamic (js/ts) configs - Static configs are way easier to edit programmatically - Dynamic configs are way better for defining plugins
2
0
1
ParaglideJS is an excellent i18n solution and I'm surprised I've never seen anyone mention it here
2
3
9