UNPKG

jsonld-signatures-merkleproof2019

Version:

A jsonld signature implementation to support MerkleProof2019 verification in Verifiable Credential context

18 lines (17 loc) 539 B
import currentLocale from '../constants/currentLocale'; import i18n from '../data/i18n.json'; export default function getText(group, item) { if (!group || !item) { return ''; } if (!i18n[currentLocale.locale]) { return '[missing locale data]'; } if (!i18n[currentLocale.locale][group]) { return '[missing locale group data]'; } if (!i18n[currentLocale.locale][group][item]) { return '[missing locale item data]'; } return i18n[currentLocale.locale][group][item] || ''; }