lute-v3 icon indicating copy to clipboard operation
lute-v3 copied to clipboard

Adding languages: load from predefined does not work

Open tbm opened this issue 9 months ago • 1 comments

Description

I added Swahili and Afrikaans, which are predefined. But then, to my surprise, I had to add the dictionaries myself. Looking at lute-language-defs, the definitions have dictionaries.

The problem is: when you go to "Languages", you have two options:

  • Load predefined language and sample stories: adding languages this way will add the dictionaries
  • Create new

I never noticed the "load predefined languages" option (not sure why) and clicked on "Create new".

But "Create new" should also work because it says: "Load from predefined". However, when you choose a predefined language there, the dictionaries and other information from definition.yaml are ignored. I'd say that's a bug.

To Reproduce

Steps to reproduce the behavior, e.g.:

  1. Go to 'Settings'
  2. Click on 'Languages'
  3. Scroll down to 'Create new'
  4. Choose something from 'Load from predefined'
  5. No definitions from the pre-definitions are used

tbm avatar Apr 11 '25 02:04 tbm

Hm, that's odd, when I tried it it worked. Just before clicking "go" (sheesh what crappy UI design):

Image

After "go":

Image

You didn't get all of those loaded, @tbm ?

jzohrab avatar Apr 11 '25 21:04 jzohrab