Desktop (Desktop v1.3.3) View Source

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.

Link to this section 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.

Link to this section 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.