QuiiBz / next-international

Type-safe internationalization (i18n) for Next.js
https://next-international.vercel.app
MIT License
1.25k stars 59 forks source link

Without react full server side #229

Closed yovanoc closed 11 months ago

yovanoc commented 11 months ago

I was wondering if we could use the server sides methods without react and nextjs at all? thanks

QuiiBz commented 11 months ago

That's currently not exposed and only used internally to use the same code between the Pages & App Router.

Could you share your use-case? next-international focuses solely on Next.js.

yovanoc commented 11 months ago

I see. The use case is a monorepo with different nextjs apps and other apps like api and services. I would like to share the same 'translate' package that would be created inside the monorepo and share the translate methods to the nextjs apps, but with the services too, thanks for your time

QuiiBz commented 11 months ago

That seems like a valid use-case. The createT function will be exposed in the next release.

yovanoc commented 11 months ago

Thanks I will see how it works then !

QuiiBz commented 10 months ago

Released in next-international@1.1.2!