Editor - Settings - Languages

This view lists the existing languages on the page. Here you can enable and disable, it is also where you choose one by default.

Main Models

  • languages: contains all the existing languages in the database

Utility Functions

  • hideLanguageSettings(): this function closes the modal of languages.
  • updateLanguage(language): this function is used to enable or disable a language.
  • changeDefault(language): choose the default language for the page

Example of base theme

  1. changeDefault
  2. updateLanguage