1
0
Fork 0
mirror of https://gitlab.com/Alamantus/Readlebee.git synced 2025-06-22 09:16:39 +02:00

Move loggedOut page text to i18n locale file

This commit is contained in:
Robbie Antenesse 2019-09-13 23:25:10 -06:00
parent e991169075
commit 2ea0015e70
2 changed files with 21 additions and 13 deletions

View file

@ -2,9 +2,14 @@
"name": "English", "name": "English",
"locale": "en", "locale": "en",
"home": { "home": {
"subtitle": "An attempt at a viable alternative to Goodreads", "logged_out_subtitle": "All the Book Buzz in Once Place",
"temp_left": "Still gotta figure out a design.", "logged_out_track_books": "Keep track of books you've read, want to read, and are currently reading.",
"temp_right": "It's early days, my friends!" "logged_out_share_friends": "Share your thoughts about what you're reading and see what your friends think of their books.",
"logged_out_read_rate": "Rate, review, and recommmend books or something. I dunno. It's early days, my friends!",
"logged_out_community_header": "A Look Inside the Hive",
"logged_out_recent_reviews": "Recent Reviews",
"logged_out_recent_updates": "Recent Updates",
"logged_out_join_now": "Join Now!"
}, },
"login": { "login": {
"email": "Email", "email": "Email",
@ -22,6 +27,7 @@
"see_details_tooltip": "Opens Inventaire in a new tab/window" "see_details_tooltip": "Opens Inventaire in a new tab/window"
}, },
"interaction": { "interaction": {
"reload": "Reload",
"heart": "Like", "heart": "Like",
"add": "Add to Shelf", "add": "Add to Shelf",
"average_rating": "Average Rating", "average_rating": "Average Rating",

View file

@ -1,9 +1,11 @@
import html from 'choo/html'; import html from 'choo/html';
export const loggedOutView = (homeController, emit) => { export const loggedOutView = (homeController, emit) => {
const { i18n } = homeController;
return [ return [
html`<section> html`<section>
<h2>Read Together</h2> <h2>${i18n.__('home.logged_out_subtitle')}</h2>
<article class="flex one three-500"> <article class="flex one three-500">
<div> <div>
<div class="card"> <div class="card">
@ -13,7 +15,7 @@ export const loggedOutView = (homeController, emit) => {
</span> </span>
</header> </header>
<footer> <footer>
Keep track of books you've read, want to read, and are currently reading. ${i18n.__('home.logged_out_track_books')}
</footer> </footer>
</div> </div>
</div> </div>
@ -25,7 +27,7 @@ export const loggedOutView = (homeController, emit) => {
</span> </span>
</header> </header>
<footer> <footer>
Share your thoughts about what you're reading and see what your friends think of their books. ${i18n.__('home.logged_out_share_friends')}
</footer> </footer>
</div> </div>
</div> </div>
@ -37,20 +39,20 @@ export const loggedOutView = (homeController, emit) => {
</span> </span>
</header> </header>
<footer> <footer>
Read, rate, and recommmend books or something. It'll be cool. ${i18n.__('home.logged_out_read_rate')}
</footer> </footer>
</div> </div>
</div> </div>
</article> </article>
</section>`, </section>`,
html`<section> html`<section>
<h2>Join the Community</h2> <h2>${i18n.__('home.logged_out_community_header')}</h2>
<div class="flex one two-700"> <div class="flex one two-700">
<div> <div>
<div class="card"> <div class="card">
<header> <header>
<h3>Recent Reviews</h3> <h3>${i18n.__('home.logged_out_recent_reviews')}</h3>
<button class="small pseudo pull-right tooltip-left" data-tooltip="Reload"> <button class="small pseudo pull-right tooltip-left" data-tooltip=${i18n.__('interaction.reload')}>
<i class="icon-loading"></i><!--/* This needs to get updated to a reload icon */--> <i class="icon-loading"></i><!--/* This needs to get updated to a reload icon */-->
</button> </button>
</header> </header>
@ -62,8 +64,8 @@ export const loggedOutView = (homeController, emit) => {
<div> <div>
<div class="card"> <div class="card">
<header> <header>
<h3>Recent Updates</h3> <h3>${i18n.__('home.logged_out_recent_updates')}</h3>
<button class="small pseudo pull-right tooltip-left" data-tooltip="Reload"> <button class="small pseudo pull-right tooltip-left" data-tooltip=${i18n.__('interaction.reload')}>
<i class="icon-loading"></i><!--/* This needs to get updated to a reload icon */--> <i class="icon-loading"></i><!--/* This needs to get updated to a reload icon */-->
</button> </button>
</header> </header>
@ -75,7 +77,7 @@ export const loggedOutView = (homeController, emit) => {
</div> </div>
</section>`, </section>`,
html`<section class="center-align"> html`<section class="center-align">
<a href="/login" class="large success button">Join Now!</a> <a href="/login" class="large success button">${i18n.__('home.logged_out_join_now')}</a>
</section>`, </section>`,
]; ];
} }