lbry-sec/i18n.js

130 lines
4.3 KiB
JavaScript
Raw Normal View History

2021-03-28 16:44:13 +02:00
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',
2021-03-29 15:48:14 +02:00
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',
2021-03-29 15:59:33 +02:00
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',
2021-03-28 16:44:13 +02:00
};
2021-03-28 16:38:52 +02:00
const en = {
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.',
2021-03-29 15:48:14 +02:00
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',
2021-03-29 15:48:14 +02:00
summary_title: 'Whats the big deal?',
summary_subtitle:
2021-03-29 16:04:49 +02:00
'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-29 15:48:14 +02:00
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:
2021-03-29 16:04:49 +02:00
'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".',
2021-03-29 15:48:14 +02:00
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.',
2021-03-29 15:59:33 +02:00
twitter_title: 'What are people saying?',
2021-03-29 15:48:14 +02:00
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',
2021-03-29 16:04:49 +02:00
email_success: 'Thank you. We will keep you in the loop.',
2021-03-29 15:48:14 +02:00
email_error: 'Sorry, there was an error. Please try again.',
2021-03-29 15:59:33 +02:00
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.',
2021-03-28 16:38:52 +02:00
};
2021-03-29 16:09:11 +02:00
const es = {
// landing_action: '...',
};
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];
}
}