{primary} Eventmie Pro publishes its config file at
config/eventmie.php
If you wanna change any of default configurations, simply follow the below guidelines.
The prefix is, whether to run Eventmie Pro as a base site e.g example.com or on a specific URL e.g example.com/event-website.
In case, you're installing it on the existing Laravel website, you'll want to set a URL prefix
e.g example.com/event-website. And admin_prefix is for changing the Admin Panel URL.
'route' => [
'prefix' => 'event-website',
'admin_prefix' => 'secret-admin',
],
Eventmie supports multiple languages including RTL. Add/remove language to add/remove language from the language dropdown.
'locales' => [
'en',
'ar',
'de',
'fr',
'hi',
'it',
'ja',
'nl',
'ru',
'zh_CN',
'zh_TW',
],
{success} Eventmie Pro auto-detects RTL languages from the
rtl_langslist and changes website direction to RTL.
We've added some pre-defined RTL languages. If you're adding a new RTL language that is not included in the rtl_langs list, make sure you add it there.
'rtl_langs' => [
'ar', // arabic
'fa', // persian
'he', // hebrew
'ms', // malay
'ur', // urdu
'ml' // malayalam
],
{success} Eventmie Pro publishes its languages to your application
resources/lang/vendor/eventmie-prodirectory. You can change the translations from there.
The default language is English en. You can change it to any other. Make sure that the language that you're setting as default, must be in the above locales list.
'default_lang' => 'en',
Go to the language directory resources/lang/vendor/eventmie-pro.
Duplicate the en directory and rename it to <new_language_shortname>.
Suppose you wanna add Romanian language. Simply duplicate en folder and rename duplicated folder to ro.
resources
│
├── lang
├── vendor
├── eventmie-pro
├── en
└── ro
Translate all the variable's VALUES (right-side only) inside the new language folder's em.php file.
{primary} The below language files are for Admin Panel translations.
Go to the language directory resources/lang/vendor/voyager.
Duplicate the en directory and rename it to <new_language_shortname>.
Suppose you wanna add Romanian language. Simply duplicate en folder and rename duplicated folder to ro.
resources
│
├── lang
├── vendor
├── voyager
├── en
└── ro
Translate all the variable's VALUES (right-side only) inside the new language folder's *all files.
{success} Tip! You can find the voyager translations into your language here- Voyager Translations
Add the language short name to the config/eventmie.php locales list.
'locales' => [
'en',
'ro',
.
.
],
And finally, this one will update the database -> translations table that's responsible for showing the Admin Panel in multiple languages.
php artisan eventmie-pro:translate-admin-panel
resources/lang/vendor/eventmie-pro/ & resources/lang/vendor/voyager.config/eventmie.php locales list.And run this-
php artisan eventmie-pro:translate-admin-panel