This documentation is for a legacy version of Next.js Supabase. For the latest version, please visit the Next.js Supabase Turbo documentation

Adding a new language

How to add a new language to your Next.js Supabase application.

To add a new locale to your application, you need to create a new file in the public/locales directory.

For example, to add a new language called fr (French), you would create a new file called fr.json in the public/locales directory.

{ "hello": "Bonjour" }

That's it! Now you can use the hello key in your application and it will be translated to Bonjour when the locale is set to fr.


Subscribe to our Newsletter
Get the latest updates about React, Remix, Next.js, Firebase, Supabase and Tailwind CSS