Pharaonic
Loading...

Configurations

# Publish config

You can publish the config file and you will find it in config/Pharaonic/localization.php.

1php artisan vendor:publish --tag=laravel-localization

# Options

Option Description
type
You can specify how your URLs can be localizable :
sub-directory or sub-domain or ccTLDs
default
Default Locale
Used with types [sub-domain, sub-directory]
hide-default
Allow to hide the default locale
Used with types [sub-domain, sub-directory]
force-redirect
Force redirect to default localization If there's no locale
Used with hide-default == false
prefixes
List of prefixes that might be before the locale parameter in the url
Used with type [sub-directory]
MUST END WITH /*
supported
ONLY supported locales list
ccTLDs-list
List of all ccTLDs
Used with type [ccTLD]
list
List of all locales (supported and not)