lbry-sec/i18n.js

49 lines
1.3 KiB
JavaScript
Raw Normal View History

2021-03-28 16:44:13 +02:00
export const m = {
title: 'title',
faq: 'faq',
help_lbry: 'help_lbry',
save_crypto: 'save_crypto',
go_home: 'go_home',
og_description: 'og_description',
landing_subtitle: 'landing_subtitle',
landing_action: 'landing_action',
summary_title: 'summary_title',
summary_subtitle: 'summary_subtitle',
2021-03-28 16:44:13 +02:00
};
2021-03-28 16:38:52 +02:00
const en = {
title: 'LBRY, THE SEC, & THE FUTURE OF CRYPTO',
2021-03-28 16:44:13 +02:00
faq: 'VIEW FAQ',
help_lbry: 'HELP LBRY',
save_crypto: 'SAVE CRYPTO',
go_home: 'Go Home',
og_description:
2021-03-29 14:42:58 +02:00
'The SEC doesnt understand blockchain. The claims made in SEC vs. LBRY would destroy the United States cryptocurrency industry.',
landing_subtitle:
'The SEC doesnt understand blockchain. The claims made in SEC vs. LBRY would destroy the United States cryptocurrency industry.',
landing_action: 'Help us educate the SEC',
summary_title: 'Whats the big deal?',
summary_subtitle:
'The entire blockchain industry is at risk in the United States. Big tech and Wall St. would have more power and many people could lose their jobs!',
2021-03-28 16:38:52 +02:00
};
2021-03-29 00:12:23 +02:00
const es = {};
2021-03-28 16:38:52 +02:00
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];
}
}