lbry-sec/i18n.js
Sean Yesmunt 1e92847ce0 commit
2021-03-28 18:12:23 -04:00

33 lines
479 B
JavaScript

export const m = {
title: 'title',
faq: 'faq',
help_lbry: 'help_lbry',
save_crypto: 'save_crypto',
};
const en = {
title: 'LBRY, THE SEC, & THE FUTURE OF CRYPTO',
faq: 'VIEW FAQ',
help_lbry: 'HELP LBRY',
save_crypto: 'SAVE CRYPTO',
};
const es = {};
const languages = {
es,
};
export function t(string, lang) {
let val;
if (languages[lang]) {
val = languages[lang][string];
}
if (val) {
return val;
} else {
return en[string];
}
}