| Conditions | 2 |
| Total Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 1 |
| CRAP Score | 2.5 |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | 1 | from typing import List |
|
| 6 | 1 | def get_language_codes() -> List[str]: |
|
| 7 | """Gets a list of all available language codes. |
||
| 8 | |||
| 9 | This looks at your project's settings.LANGUAGES |
||
| 10 | and returns a flat list of the configured |
||
| 11 | language codes. |
||
| 12 | |||
| 13 | Arguments: |
||
| 14 | A flat list of all availble language codes |
||
| 15 | in your project. |
||
| 16 | """ |
||
| 17 | |||
| 18 | return [ |
||
| 19 | lang_code |
||
| 20 | for lang_code, _ in settings.LANGUAGES |
||
| 21 | ] |
||
| 22 |