2021-03-28 16:44:13 +02:00
|
|
|
export const m = {
|
|
|
|
title: 'title',
|
|
|
|
faq: 'faq',
|
|
|
|
help_lbry: 'help_lbry',
|
|
|
|
save_crypto: 'save_crypto',
|
|
|
|
};
|
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',
|
2021-03-28 16:38:52 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
const es = {
|
|
|
|
title: 'Hola amigo',
|
|
|
|
};
|
|
|
|
|
|
|
|
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];
|
|
|
|
}
|
|
|
|
}
|