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

Setting a Default Language

Learn how to set a default language for your Makerkit application.

Setting a default language in your Next.js Supabase application is easy.

Simply set the environment variable DEFAULT_LOCALE to the language code you want to use as the default language.

By default, we use en as the default language. If you want to change it, simply add the following line to your .env file. For example, if you want to use Spanish as the default language, you would add the following line to your .env file:

DEFAULT_LOCALE=es

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