cheatcode / joystick

A full-stack JavaScript framework for building stable, easy-to-maintain apps and websites.
https://cheatcode.co/joystick
Other
209 stars 11 forks source link

Add support for and load translations on server #379

Closed rglover closed 2 months ago

rglover commented 3 months ago

Right now, translations are limited to the UI and emails. It should be possible to access a function like context.i18n('path.to.translation') and load translations on the server, too. Helpful for server-side error messages that eventually make it back to the client.

rglover commented 3 months ago

Best way to do this is to just load the current i18n/<language>.js file into the context, relative to either the default app language or if there's a user, the user language.

rglover commented 2 months ago

Closing as dupe of #149