mclemente / fvtt-module-polyglot

Talk to others using a language you can speak and scrambles text you can't understand.
MIT License
41 stars 48 forks source link

Polyglot Providers using LanguageProvider.languages without label: will not display a name in Language Settings #303

Closed Imper1um closed 1 year ago

Imper1um commented 1 year ago

Describe the bug If a Language Provider is using LanguageProvider.languages, but an entry does not include a label property for a language, it will not display the name of the language in the Language Settings module.

To Reproduce Steps to reproduce the behavior:

  1. Load a World with a LanguageProvider that utilizes languages for initialization, but does not have a label: property for its languages.
  2. Click Configure Settings
  3. Click Polyglot
  4. Click Language Settings
  5. Notice blank labels for all languages that do not have a label: property.

Expected behavior When language.label != true then use language.key for display purposes.

Versions

Additional context LanguageProviders that use LanguageProvider.languages but do not use label:

Imper1um commented 1 year ago

Issue persists into Polyglot v2.0.2