lbry-sec/i18n.js
2021-03-29 09:08:00 -04:00

46 lines
1.2 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

export const m = {
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',
};
const en = {
faq: 'VIEW FAQ',
help_lbry: 'HELP LBRY',
save_crypto: 'SAVE CRYPTO',
go_home: 'Go Home',
og_description:
'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!',
};
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];
}
}