wanderer-moe / site

⚙ The frontend of https://wanderer.moe/ — built with NextJS, TailwindCSS & shadcn/ui
https://wanderer.moe/
38 stars 0 forks source link

reconfigure i18n for next #255

Open dromzeh opened 1 year ago

dromzeh commented 1 year ago

all languages and their appropriate translations are linked within the i18n repository, which is initialized as a sub-module in site: ..src/lib/i18n.

ideally, we keep the format as lang.json and not lang.ts/lang.js for translations as i'm not sure on how well crowdin's support is for those files and i don't want to break the current setup

preferred locale should be saved as a cookie, and should not have a route for lang e.g site.com/en/asset/asdf = bad

in other words: need to find a good i18n library or just write a custom one kek