seiger / slang
Evocms package for work with Multi lang management for Resource and modules in Evolution CMS. Seiger Lang multi language Management Module for Evolution CMS admin panel. The work of the module is based on the use of the standard Laravel functionality for multilingualism.
Fund package maintenance!
Ko Fi
Installs: 96
Dependents: 0
Suggesters: 0
Security: 0
Stars: 5
Watchers: 1
Forks: 2
Open Issues: 0
Type:evolutioncms-module
Requires
- php: ^8.1
README
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.
Features
- Automatic Phrase Translation through Google or Custom.
- Automatic search for translations in templates.
- Multilingual tabs in resource.
- Unlimited Translation Language Support.
- Multilingual SEO Support.
Install by artisan package installer
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
Usage in blade
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()!!}
Content management
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