blob: 357ddea7c2c9d4d9419b89b3439d247c3e6ff965 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#!/usr/bin/env python3
"""A matrix! Of languages!"""
import nikola.nikola
keys = ['LUXON_LOCALES', 'MOMENTJS_LOCALES', 'PYPHEN_LOCALES', 'DOCUTILS_LOCALES']
keys_short = ['language', 'luxon', 'moment', 'pyphen', 'docutils']
print('\t'.join(keys_short))
for tr in nikola.nikola.LEGAL_VALUES['TRANSLATIONS']:
if isinstance(tr, tuple):
tr = tr[0]
out = tr
if len(out) < 8:
out += '\t'
for key in keys:
out += '\t'
out += '\x1b[37;42;1m+' if tr in nikola.nikola.LEGAL_VALUES[key] else '\x1b[37;41;1m-'
print(out + '\t\x1b[0m')
print('\t'.join(keys_short))
|