def load_i18n_block(key):
    rv = {}
    for lang in KNOWN_LANGUAGES:
        val = translations.get(lang, {}).get(key)
        if val is not None:
            rv[lang] = val
    return rv
test the @declared_attr approach from a custom base.
dataset/ETHPy150Open lektor/lektor-archive/lektor/i18n.py/load_i18n_block--crossover with--dataset/ETHPy150Open zzzeek/sqlalchemy/test/ext/declarative/test_mixin.py/DeclarativeMixinTest.test_mapper_args_custom_base