This documentation is for a legacy version of Next.js and Supabase. For the latest version, please visit the Next.js and Supabase V2 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