How to change default language

Verze:

27. 06. 2025

Zodpovědná osoba:

Dominik Šlechta

  1. Rename cs to en and en to cs in zeroadmin
  2. Go through files and modify:
    • /app/repository/BaseRepository.php                    -> lang's ID exchange
    • /app/router/RouterFactory.php                              -> bottom condition, change cs to en
    • /app/presenters/Front/Trait/Translator.php    -> lang's ID exchange
    • /app/config/config.neon                                          -> change translations:default to en
    •  
  3. And finally just search for ‘cs’ and what is related to lang rewrite to the desired language

If it is done at the beginning, I think it is enough to change it in the Router and in the config and it would be OK.