
- MODX 3
- PHP 8.2
- Vue 3


| Requirement | Description |
|---|---|
| MODX Revolution | 3.0+ |
| PHP | 8.2+ |
| VueTools | 1.1.2-pl+ |
| pdoTools | 2.11.3-pl or newer |
| Friendly URLs | enabled |
In system settings, set localizator3_default_language to one of your language keys (for example en). An empty value falls back to the first active language by rank. Without the setting and without an active language, manager auto-translation and the translate_resources.php CLI stop with an error.
ru, en)URLs like site.example/en/: System settings.
Resource fields are replaced with localized values. Field content goes to localizator3_content. In Fenom: {$_modx->resource.localizator3_content}.
Output resource lists with getLocalizedResources. The resolver sets pdotools_fetch_class = ModxPro\PdoTools\FetchLocalizator. The class is loaded by the namespace bootstrap, so localized selection via pdoTools works.
{'!getLocalizedResources' | snippet : [
'snippet' => 'pdoMenu',
'parents' => 0,
'level' => 1,
]}[[!getLocalizedResources?
&snippet=`pdoMenu`
&parents=`0`
&level=`1`
]]Language switcher: Language switching. Snippet parameters: getLocalizedResources.