taskany-inc / issues

The simplest task manager ever. Love planning again 🐑
http://taskany.org
MIT License
15 stars 8 forks source link

Support locale in tRPC procedures #1359

Open awinogradov opened 1 year ago

awinogradov commented 1 year ago

1) Create middleware for locale check. If user has no saved locale - save current, if it has - redirect to saved locale 2) Write locale to DB 3) Pass to user session so it can be accessed in trpc context

awinogradov commented 8 months ago
  1. https://github.com/nosus-platform/nosus/blob/main/src/server/nosus.ts#L46
  2. https://github.com/nosus-platform/nosus/blob/main/src/server/utils/trpcContext.ts#L7