Skip to content
/ sLang Public

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.

License

Notifications You must be signed in to change notification settings

Seiger/sLang

Folders and files

NameName
Last commit message
Last commit date

Latest commit

8abf42a · Jun 25, 2023

History

42 Commits
Jun 13, 2023
Oct 15, 2022
Oct 18, 2022
Jun 17, 2023
Jun 13, 2023
Oct 23, 2022
Oct 16, 2022
Jun 17, 2023
Jun 25, 2023
Jun 23, 2023
Oct 15, 2022
Oct 15, 2022
Jun 17, 2023
Jun 17, 2023

Repository files navigation

sLang for Evolution CMS 3

sLang Latest Stable Version CMS Evolution PHP version License Issues Stars Total Downloads

sLang 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.

Features

  • Automatic translation of phrases through Google.
  • Automatic search for translations in templates.
  • Multilingual tabs in resource.
  • Unlimited translation languages.

Multilingual tabs

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

See full documentation here

About

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.

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published