12345678910111213141516171819202122232425262728293031 |
- import yaml
- from pathlib import Path
- LANG_PATH = Path(__file__).resolve().parent.parent.joinpath('wowchemy').joinpath('data').joinpath('i18n')
- LANG_YAML = LANG_PATH.joinpath('languages.yaml')
- with open(LANG_YAML) as f:
- master_map = yaml.safe_load(f)
-
-
-
-
- i = 0
- for master_item in master_map:
- print(f'- **{master_map[master_item]}** ({master_item})')
- i += 1
- print("\n")
- print(f"{i} language packs found!")
|