lbry-sec/i18n.js
2021-03-29 10:13:37 -04:00

129 lines
4.3 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 = {
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',
p1_a: 'p1_a',
p1_b: 'p1_b',
p2_a: 'p2_a',
p2_b: 'p2_b',
share_story_title: 'share_story_title',
share_story_subtitle: 'share_story_subtitle',
petition_title: 'petition_title',
petition_subtitle: 'petition_subtitle',
petition_link: 'petition_link',
read_more_title: 'read_more_title',
read_more_subtitle: 'read_more_subtitle',
read_more_link: 'read_more_link',
email_title: 'email_title',
email_subtitle: 'email_subtitle',
email_input_label: 'email_input_label',
email_input_button: 'email_input_button',
email_input_button_loading: 'email_input_button_loading',
email_success: 'email_success',
email_error: 'email_error',
try_lbry_title: 'try_lbry_title',
try_lbry_subtitle: 'try_lbry_subtitle',
try_lbry_desktop_link: 'try_lbry_desktop_link',
try_lbry_desktop_help: 'try_lbry_desktop_help',
try_odysee_help: 'try_odysee_help',
contact_title: 'contact_title',
contact_press: 'contact_press',
contact_legal: 'contact_legal',
contact_other_email: 'contact_other_email',
contact_discord: 'contact_discord',
donate_title: 'donate_title',
donate_subtitle: 'donate_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.',
p1_a:
'The SEC is advancing an aggressive and disastrous new standard that would make almost all blockchain tokens securities.',
p1_b:
'Classifying all actively-developed blockchain tokens as securities will be a bureaucratic nightmare for United States residents and businesses operating in the US.',
p2_a:
'Under this new standard, almost any token is a security, including the previously safe Ethereum. The nature of technology is that it is never "finished".',
p2_b:
'This change will make it much harder for startups to form new blockchain companies, cause massive job loss, and stunt the development of a critical new technology. All the while, big tech and Wall St. prosper!',
share_story_title: 'Share this story',
share_story_subtitle: 'Post to social media to spread awareness.',
twitter_title: 'What are people saying?',
petition_title: 'Sign the petition',
petition_subtitle:
'Tell the SEC that cryptocurrency must remain legal and free.',
petition_link: 'Add your signature',
read_more_title: 'Read more',
read_more_subtitle: 'Read our case guide and FAQ',
read_more_link: 'here',
email_title: 'Stay Informed',
email_subtitle: 'We will keep you up to date with the latest on this case.',
email_input_label: 'Email',
email_input_button: 'Submit',
email_input_button_loading: 'Submitting',
email_success: 'Thank you. We will keep you in the loop.',
email_error: 'Sorry, there was an error. Please try again.',
try_lbry_title: 'Try LBRY',
try_lbry_subtitle:
'If the government and big tech want it gone, it must be good.',
try_lbry_desktop_link: 'LBRY Desktop',
try_lbry_desktop_help: 'decentralized and open-source',
try_odysee_help: 'easiest to use',
contact_title: 'Contact us',
contact_press: 'Press inquiries',
contact_legal: 'Legal',
contact_other_email: 'Other email',
contact_discord: 'Discord (not run by LBRY Inc)',
donate_title: 'Donate',
donate_subtitle: 'If you want to go far, go together.',
};
const es = {
// landing_action: '...',
};
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];
}
}