View Source Desktop (Desktop v1.5.3)

This is the documentation for the Desktop project.

By default, Desktop applications depend on the following packages:

To get started, see the Getting Started Guide.

This library is still worked on heaviliy and APIs are going to change in v2. If you are curious to play around or contribute it's to best clone the current sample app at: https://github.com/elixir-desktop/desktop-example-app and start modifying it to your wishes.

Summary

Functions

Call on application to use the system locale by default for translations. The function will scan your gettext backend for available languages and compare to the system language to select the best match.

Allows setting the default locale that will be used for translations in this Desktop application.

Functions

Link to this function

identify_default_locale(backend)

View Source

Call on application to use the system locale by default for translations. The function will scan your gettext backend for available languages and compare to the system language to select the best match.

    Desktop.identify_default_locale(MyApp.Gettext)
Link to this function

put_default_locale(locale)

View Source

Allows setting the default locale that will be used for translations in this Desktop application.