hermes (OLD)
- 4 Devlogs
- 6 Total hours
I just implemented my own localization system. Instead of relying on bulky libraries, I just made a simple one which uses JSON dictionaries. The hardest part was figuring out how to get translations into client components without bundling every single language’s dictionary. Anyways, since the app looks the same after this (just translatable), I am attaching this unholy behemoth of a one liner I made. Don’t know if I should be proud or scared.
Welp, I have re-created the repository five times already due to me being an idiot and constantly messing up tiny things and wanting to have a clean history (at least at the start). Stupid OCD
2 and half hours just to get the framework working?!
To be frank, it was mostly the side stuff that slowed me down like configuring Renovate and doing the legal stuff like the license.
At least now I have a monorepo statically compiled Next.js frontend that can fetch data from a Hono backend running on Cloudflare Workers.
Now comes the hard time: Design gulp
“Make it a monorepo” they said; “it will be fun” they said.
All I have done for the last hour was fight with config files to make the frontend and backend know about each other’s types.