elementary / initial-setup

New user setup app designed for elementary OS
https://elementary.io
GNU General Public License v3.0
35 stars 11 forks source link

Use language2locale to set new user's language #95

Closed davidmhewitt closed 3 years ago

davidmhewitt commented 3 years ago

Fixes #90

Act.User.set_language requires a locale string in the form en_GB.UTF-8. We were previously just providing the language and country in the form en_GB or sometimes just the language (e.g. ko).

This method is used in the installer to set the languages and locales correctly, so we should do the same here.