learningequality / le-utils

Utilities and constants shared across Kolibri, Ricecooker, and Kolibri Studio
MIT License
2 stars 31 forks source link

implemented first_native_name helper #44

Closed ivanistheone closed 6 years ago

ivanistheone commented 6 years ago

The native_name property of language object is list-like (c.f. tt) and hence not good for showing in user interfaces.

The first_native_name property returns the first item in the list (including possible regional modifiers in brackets).