[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: translatable.php
<?php return [ /* |-------------------------------------------------------------------------- | Application Locales |-------------------------------------------------------------------------- | | Contains an array with the applications available locales. | */ 'locales' => [ 'en', 'fr', 'es' => [ 'MX', // mexican spanish 'CO', // colombian spanish ], ], /* |-------------------------------------------------------------------------- | Locale separator |-------------------------------------------------------------------------- | | This is a string used to glue the language and the country when defining | the available locales. Example: if set to '-', then the locale for | colombian spanish will be saved as 'es-CO' into the database. | */ 'locale_separator' => '-', /* |-------------------------------------------------------------------------- | Default locale |-------------------------------------------------------------------------- | | As a default locale, Translatable takes the locale of Laravel's | translator. If for some reason you want to override this, | you can specify what default should be used here. | If you set a value here it will only use the current config value | and never fallback to the translator one. | */ 'locale' => null, /* |-------------------------------------------------------------------------- | Use fallback |-------------------------------------------------------------------------- | | Determine if fallback locales are returned by default or not. To add | more flexibility and configure this option per "translatable" | instance, this value will be overridden by the property | $useTranslationFallback when defined | */ 'use_fallback' => false, /* |-------------------------------------------------------------------------- | Use fallback per property |-------------------------------------------------------------------------- | | The property fallback feature will return the translated value of | the fallback locale if the property is empty for the selected | locale. Note that 'use_fallback' must be enabled. | */ 'use_property_fallback' => true, /* |-------------------------------------------------------------------------- | Fallback Locale |-------------------------------------------------------------------------- | | A fallback locale is the locale being used to return a translation | when the requested translation is not existing. To disable it | set it to false. | If set to null it will loop through all configured locales until | one existing is found or end of list reached. The locales are looped | from top to bottom and for country based locales the simple one | is used first. So "es" will be checked before "es_MX". | */ 'fallback_locale' => 'en', /* |-------------------------------------------------------------------------- | Translation Model Namespace |-------------------------------------------------------------------------- | | Defines the default 'Translation' class namespace. For example, if | you want to use App\Translations\CountryTranslation instead of App\CountryTranslation | set this to 'App\Translations'. | */ 'translation_model_namespace' => null, /* |-------------------------------------------------------------------------- | Translation Suffix |-------------------------------------------------------------------------- | | Defines the default 'Translation' class suffix. For example, if | you want to use CountryTrans instead of CountryTranslation | application, set this to 'Trans'. | */ 'translation_suffix' => 'Translation', /* |-------------------------------------------------------------------------- | Locale key |-------------------------------------------------------------------------- | | Defines the 'locale' field name, which is used by the | translation model. | */ 'locale_key' => 'locale', /* |-------------------------------------------------------------------------- | Always load translations when converting to array |-------------------------------------------------------------------------- | Setting this to false will have a performance improvement but will | not return the translations when using toArray(), unless the | translations relationship is already loaded. | */ 'to_array_always_loads_translations' => true, /* |-------------------------------------------------------------------------- | Configure the default behavior of the rule factory |-------------------------------------------------------------------------- | The default values used to control the behavior of the RuleFactory. | Here you can set your own default format and delimiters for | your whole app. * */ 'rule_factory' => [ 'format' => \Astrotomic\Translatable\Validation\RuleFactory::FORMAT_ARRAY, 'prefix' => '%', 'suffix' => '%', ], /* |-------------------------------------------------------------------------- | Translation Wrapper |-------------------------------------------------------------------------- | Defines the wrapper for translations when creating multiple translations. | It is set to null by default, so each locale will be model's property. | If you want to wrap the translations with their respective locales inside | a separate model's property, just set it here. | */ 'translations_wrapper' => null, ];
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: premium320.web-hosting.com
Server IP: 66.29.153.54
PHP Version: 8.2.29
Server Software: LiteSpeed
System: Linux premium320.web-hosting.com 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64
HDD Total: 97.87 GB
HDD Free: 76.85 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
No
git:
Yes
User Info
Username: aoneqssk
User ID (UID): 1285
Group ID (GID): 1290
Script Owner UID: 1285
Current Dir Owner: 1285