Skip to main content

Reference

This page is a quick lookup for sLang APIs, classes, and manager surfaces.

Facade And Helpers​

SurfacePurpose
sLang::langDefault()Returns the configured default locale.
sLang::langConfig()Returns all site languages configured for the manager.
sLang::langFront()Returns frontend languages.
sLang::langSwitcher()Builds language switcher data for templates.
sLang::hreflang()Builds localized page alternates.
sLang::siteContentFields()Returns resource fields handled by multilingual tabs.

Models And Support Classes​

ClassPurpose
Seiger\sLang\Models\sLangTranslateDictionary phrase model.
Seiger\sLang\Models\sLangContentLocale-aware resource content model.
Seiger\sLang\Models\sLangTmplvarContentvalueLocale-aware Template Variable value model.
Seiger\sLang\Support\LanguageBridgeBridges manager/runtime language values.
Seiger\sLang\Support\TreeCollectionTree collection helper for localized navigation.

Manager Classes​

ClassPurpose
Seiger\sLang\Livewire\ModulePanelTop-level Livewire module shell.
Seiger\sLang\Livewire\SettingsPanelConfiguration form component.
Seiger\sLang\Tables\TranslatesTableDataDictionary table provider.
Seiger\sLang\Controllers\sLangControllerLegacy-compatible backend operations and parsing.

The table preset is addressed as slang.translates.table; the source file is config/translates/table.php.

Dictionary Actions​

ActionProvider
Synchronize keysTranslatesTableData::synchronizeTranslations()
Add rowTranslatesTableData::createInlineRow()
Save inline fieldTranslatesTableData::updateInlineField()
Delete rowTranslatesTableData::deleteRow()
Translate one valueTranslatesTableData::autoTranslateInlineField()
Translate empty column valuesTranslatesTableData::autoTranslateEmptyColumn()

Resource Endpoints​

modules/sLangModule.php keeps resource-only compatibility actions such as translate-only and dictionary synchronization. They are not new module-screen endpoints; they exist for Evolution resource edit forms and template key scanning.

Test Entrypoints​

CommandPurpose
php tests/run.phpStatic package contract checks.
php docs/checks/docs-check.phpdDocs structure, links, headings, and code fence checks.
php tests/regression/slang-demo-regression.php demo/coreDatabase-backed dictionary and settings regression.
php tests/demo-smoke.php demo/core --url=http://127.0.0.1:8788HTTP smoke for module and resource edit tabs.