Search by

seiger / slang

seiger

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.

Package info

github.com/Seiger/sLang

Type:evolution-cms-module

pkg:composer/seiger/slang

Fund package maintenance!

Ko Fi

Statistics

Installs: 532

Dependents: 0

Suggesters: 0

Stars: 8

Open Issues: 0

v2.0.0 2026-11-15 20:21 UTC

README

sLang dictionary with English, Ukrainian, and German translations

Latest Stable Version Evolution CMS version requirement PHP: 8.4, 8.5 and 8.6 License Issues Stars Total Downloads Made in Ukraine

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.
More screenshots

Language configuration

Resource editor with the Ukrainian translation tab selected

Install by artisan package installer

Go to You /core/ folder:

cd core

Install the stable 2.x release once it is available on Packagist.

php artisan package:installrequire seiger/slang "^2.0"
php artisan vendor:publish --provider="Seiger\sLang\sLangServiceProvider"

Run make DB structure with command:

php artisan migrate

Compatibility

Composer requires PHP ^8.4 and Evolution CMS ^3.5. The installed EvoUI version can require a newer Evolution CMS patch. Manager access was verified on Evolution CMS 3.5.9. Package checks passed on PHP 8.4, 8.5 and the PHP 8.6.0 RC5 preview.

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_front')}}

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

Working with localized content (Eloquent)

The Seiger\sLang\Models\sLangContent model now applies the current locale automatically.

  • Fetch translated rows for the active locale:
    use Seiger\sLang\Models\sLangContent;
    
    $items = sLangContent::active()->get(); // locale resolved via evo()->getLocale()
  • Select a specific locale explicitly:
    $items = sLangContent::lang('en')->get();
  • Include template variables while keeping the locale filtering:
    $items = sLangContent::withTVs(['color', 'price'])->get();
  • Combine multiple helpers:
    $items = sLangContent::lang('uk')
        ->withTVs(['color', 'price'])
        ->whereParent($parentId)
        ->active()
        ->get();

Documentation

See the documentation site and GitHub Releases.