sLang is a robust multilingual Management Module meticulously crafted for the Evolution CMS admin panel. This dynamic package empowers users to seamlessly implement and manage multilingual tools within the Evolution CMS environment. By utilizing Evolution CMS as its platform, sLang offers a streamlined solution for users seeking efficient and intuitive ways to handle diverse language content, making it an indispensable asset for administrators and developers navigating the intricacies of multilingual website management.
The work of the module is based on the use of the standard Laravel functionality for multilingualism. This foundation ensures a reliable and well-established framework for managing multilingual aspects, enhancing the module's performance and aligning it with industry best practices. With its focus on simplicity and integration, sLang emerges as an essential companion for those aiming to enhance the linguistic versatility of their Evolution CMS-powered websites.
- Automatic Phrase Translation through Google or Custom.
- Automatic search for translations in templates.
- Multilingual tabs in resource.
- Unlimited Translation Language Support.
- Multilingual SEO Support.
Go to You /core/ folder:
cd core
Run php artisan command
php artisan package:installrequire seiger/slang "*"
php artisan vendor:publish --provider="Seiger\sLang\sLangServiceProvider"
Run make DB structure with command:
php artisan migrate
Current language:
{{evo()->getConfig('lang')}}
or
{{evo()->getLocale()}}
Default language:
{{evo()->getConfig('s_lang_default')}}
List of frontend languages by comma:
{{evo()->getConfig('s_lang_default')}}
Translation of phrases:
@lang('phrase')
Localized versions of your page for Google hreflang
{!!sLang::hreflang()!!}
Show current language anywhere with name or shortname
{{Str::upper(sLang::langSwitcher()[evo()->getConfig('lang')]['short'])}}
Implementing a Language Switcher
@foreach(sLang::langSwitcher() as $lang)
<a href="{{$lang['link']}}">{{Str::upper($lang['ISO 639-1'])}}</a>
@endforeach