Skip to content

Setting Default Application Language

Last update: 02 Nov 2024

Step 1: Open the Configuration File

Open File Manager in your cPanel or any hosting control panel, and navigate to:

PROJECT-ROOT/config/app.php

Default Language Image

Step 2: Set the Default Language

At the bottom of the file, locate the following line:

php
'locale' => 'en',

Change 'en' to your preferred language code. For example, to set French as the default language:

php
'locale' => 'fr',

Save the file after making the change.

Default Language Image

Language Code Information

A language code is a standardized identifier for a language, typically based on the ISO 639 standard. It is used by applications to identify and manage different languages.

You can find the list of supported language codes here:

https://meta.wikimedia.org/wiki/Template:List_of_language_names_ordered_by_code

© 2019-present NativeCode. All rights reserved.