lvgl / lv_i18n

Internationalization (i18n) for LVGL
MIT License
57 stars 17 forks source link

Autodetect default compiler locale #18

Closed puzrin closed 5 years ago

puzrin commented 5 years ago

Problem

  1. Default locale is english, but exact name depends on user preferences
    • en-GB
    • en
    • en-US
  2. Manual locale selection (if not en-GB) is not nice.

It would be nice to solve this somehow.

Solution

en-GB, en & en-US are rarely used simultaniously in real world. We can search available, and if only one exists - select it as default.

kisvegabor commented 5 years ago

What about choosing the first en*?

puzrin commented 5 years ago

What about choosing the first en*?

~ the same result, but idea of strings sort is interesting.