The invention relates to an electronic device, which includes a voice user interface (VUI), speech-recognition devices (SR) for implementing the voice user interface (VUI), and memory (MEM), in which language-configuration data is arranged for the user interface (VUI, UI), including several language packages (LP1-LP9), in which packages (LP1-LP9) several languages (L1-L34) are grouped, of which at least some of the languages (L1-L34) may belong to several language packages (LP1-LP9), and at least one language package (LP1) is arranged to be selected for use in the user interface (VUI, UI). In the invention, the language package (LP1-LP9) is selected by the device.