Improve the translations
This commit is contained in:
parent
ba2199cc1e
commit
600a265765
|
@ -47,6 +47,7 @@ To download the latest version please head over the [releases page](https://gith
|
|||
|
||||
### Liebling unique features
|
||||
|
||||
* Support for translations
|
||||
* Search
|
||||
* Custom Subscribe page
|
||||
* Custom authors page
|
||||
|
|
|
@ -1 +1 @@
|
|||
(window.webpackJsonp=window.webpackJsonp||[]).push([[2],{27:function(e,s,t){e.exports=t(28)},28:function(e,s,t){"use strict";t.r(s);var n=t(0),a=t.n(n),o=(t(6),t(15)),i=t(17),l=t.n(i),c=t(18),r=t(20),d=t.n(r);a()(document).ready(function(){var e,s,t,n,i,r=a()("body"),u=a()(".js-header"),m=a()(".js-open-menu"),h=a()(".js-close-menu"),f=a()(".js-menu"),v=a()(".js-toggle-submenu"),p=a()(".js-submenu-option")[0],g=a()(".js-submenu"),C=a()(".js-recent-articles"),w=a()(".js-open-search"),b=a()(".js-close-search"),j=a()(".js-search"),k=a()(".js-input-search"),y=a()(".js-search-results"),x=u.outerHeight(),_=null,L=window.pageYOffset,A=!1,O=!1;function S(){var e=window.pageYOffset;e>=x?(u.addClass("fixed"),O&&u.addClass("fixed-active"),e>=L?O||u.removeClass("fixed-active"):u.addClass("fixed-active")):(O||u.removeClass("fixed-active"),u.removeClass("fixed")),L=e,A=!1}function D(){u.removeClass("submenu-is-active"),v.removeClass("active"),g.removeClass("opened").addClass("closed")}function E(){r.toggleClass("no-scroll-y")}m.click(function(){f.addClass("opened"),E()}),h.click(function(){f.removeClass("opened"),E()}),v.click(function(){(O=!O)?(u.addClass("submenu-is-active"),v.addClass("active"),g.removeClass("closed").addClass("opened")):D()}),w.click(function(){j.addClass("opened"),setTimeout(function(){k.focus()},400),E()}),b.click(function(){k.blur(),j.removeClass("opened"),E()}),k.keyup(function(){if(k.val().length>0&&_){var e=_.search(k.val()),s="";if(e.length>0){for(var t=0,n=e.length;t<n;t++)s+='\n <article class="m-result"> <a href="'.concat(e[t].url,'" class="m-result__link"> <h3 class="m-result__title">').concat(e[t].title,'</h3> <span class="m-result__date">').concat((a=e[t].published_at)?new Date(a).toLocaleDateString(document.documentElement.lang,{year:"numeric",month:"long",day:"numeric"}):"","</span> </a> </article>");y.html(s)}else y.html('<p class="m-no-found align-center">0 results for your search, try something different.</>')}else y.html("");var a}),a()(window).click(function(e){O&&p&&!p.contains(e.target)&&(O=!1,D())}),C.length>0&&C.slick({adaptiveHeight:!0,arrows:!1,infinite:!1,mobileFirst:!0,variableWidth:!0}),l.a.init({once:!0,startEvent:"DOMContentLoaded"}),Object(o.a)(".js-tooltip"),"undefined"!=typeof ghostSearchApiKey?(e=ghostHost,s=ghostSearchApiKey,t=new c.a({host:e,key:s,version:"v2"}),n=[],i={shouldSort:!0,threshold:0,location:0,distance:100,tokenize:!0,matchAllTokens:!0,maxPatternLength:32,minMatchCharLength:1,keys:["title","custom_excerpt","html"]},t.posts.browse({limit:"all",fields:"id, title, url, published_at, custom_excerpt, html"}).then(function(e){for(var s=0,t=e.length;s<t;s++)n.push(e[s]);_=new d.a(n,i)}).catch(function(e){console.log(e)})):(w.remove(),b.remove(),j.remove()),window.addEventListener("scroll",function(){A||requestAnimationFrame(S),A=!0},{passive:!0})})}},[[27,0,1]]]);
|
||||
(window.webpackJsonp=window.webpackJsonp||[]).push([[2],{27:function(e,s,t){e.exports=t(28)},28:function(e,s,t){"use strict";t.r(s);var n=t(0),a=t.n(n),o=(t(6),t(15)),i=t(17),l=t.n(i),c=t(18),r=t(20),d=t.n(r);a()(document).ready(function(){var e,s,t,n,i,r=a()("body"),u=a()(".js-header"),h=a()(".js-open-menu"),m=a()(".js-close-menu"),f=a()(".js-menu"),v=a()(".js-toggle-submenu"),p=a()(".js-submenu-option")[0],g=a()(".js-submenu"),w=a()(".js-recent-articles"),C=a()(".js-open-search"),j=a()(".js-close-search"),b=a()(".js-search"),k=a()(".js-input-search"),y=a()(".js-search-results"),x=a()(".js-no-results"),_=u.outerHeight(),L=null,A=window.pageYOffset,O=!1,S=!1;function D(){var e=window.pageYOffset;e>=_?(u.addClass("fixed"),S&&u.addClass("fixed-active"),e>=A?S||u.removeClass("fixed-active"):u.addClass("fixed-active")):(S||u.removeClass("fixed-active"),u.removeClass("fixed")),A=e,O=!1}function E(){u.removeClass("submenu-is-active"),v.removeClass("active"),g.removeClass("opened").addClass("closed")}function H(){r.toggleClass("no-scroll-y")}h.click(function(){f.addClass("opened"),H()}),m.click(function(){f.removeClass("opened"),H()}),v.click(function(){(S=!S)?(u.addClass("submenu-is-active"),v.addClass("active"),g.removeClass("closed").addClass("opened")):E()}),C.click(function(){b.addClass("opened"),setTimeout(function(){k.focus()},400),H()}),j.click(function(){k.blur(),b.removeClass("opened"),H()}),k.keyup(function(){if(k.val().length>0&&L){var e=L.search(k.val()),s="";if(e.length>0){for(var t=0,n=e.length;t<n;t++)s+='\n <article class="m-result"> <a href="'.concat(e[t].url,'" class="m-result__link"> <h3 class="m-result__title">').concat(e[t].title,'</h3> <span class="m-result__date">').concat((a=e[t].published_at)?new Date(a).toLocaleDateString(document.documentElement.lang,{year:"numeric",month:"long",day:"numeric"}):"","</span> </a> </article>");x.hide(),y.html(s),y.show()}else y.html(""),y.hide(),x.show()}else y.html(""),y.hide(),x.hide();var a}),a()(window).click(function(e){S&&p&&!p.contains(e.target)&&(S=!1,E())}),w.length>0&&w.slick({adaptiveHeight:!0,arrows:!1,infinite:!1,mobileFirst:!0,variableWidth:!0}),l.a.init({once:!0,startEvent:"DOMContentLoaded"}),Object(o.a)(".js-tooltip"),"undefined"!=typeof ghostSearchApiKey?(e=ghostHost,s=ghostSearchApiKey,t=new c.a({host:e,key:s,version:"v2"}),n=[],i={shouldSort:!0,threshold:0,location:0,distance:100,tokenize:!0,matchAllTokens:!0,maxPatternLength:32,minMatchCharLength:1,keys:["title","custom_excerpt","html"]},t.posts.browse({limit:"all",fields:"id, title, url, published_at, custom_excerpt, html"}).then(function(e){for(var s=0,t=e.length;s<t;s++)n.push(e[s]);L=new d.a(n,i)}).catch(function(e){console.log(e)})):(C.remove(),j.remove(),b.remove()),window.addEventListener("scroll",function(){O||requestAnimationFrame(D),O=!0},{passive:!0})})}},[[27,0,1]]]);
|
|
@ -44,7 +44,7 @@ into the {body} of the default.hbs template --}}
|
|||
{{/if}}
|
||||
</div>
|
||||
<div class="m-featured-article__meta">
|
||||
<a href="{{primary_author.url}}" class="m-featured-article__author js-tooltip" aria-label="Authors" data-tippy-content="Posted by {{primary_author.name}} {{authors autolink="false" from="2" prefix="<br> Among with " separator=" , "}}">
|
||||
<a href="{{primary_author.url}}" class="m-featured-article__author js-tooltip" aria-label="Authors" data-tippy-content="{{t "Posted by"}} {{primary_author.name}} {{authors autolink="false" from="2" prefix=(t "Among with") separator=" , "}}">
|
||||
{{#if primary_author.profile_image}}
|
||||
<div style="background-image: url({{primary_author.profile_image}});"></div>
|
||||
{{else}}
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
"Subscribed!": "Abonniert!",
|
||||
"Subscribe to our newsletter": "Abonniere unseren Newsletter",
|
||||
"You've successfully subscribed to": "Du hast",
|
||||
"Your email address": "Deine E-Mail-Adresse",
|
||||
"with the email address": "erfolgreich mit folgender E-Mail Adresse abonniert",
|
||||
"Email cannot be blank.": "Die E-Mail darf nicht leer sein.",
|
||||
"Get the latest posts delivered right to your inbox.": "Hole dir die neuesten Beiträge direkt in deinen Posteingang.",
|
||||
|
@ -28,5 +29,10 @@
|
|||
"% posts": "% Beiträge",
|
||||
"Tags": "Tags",
|
||||
"with this tag": "mit diesem Tag",
|
||||
"No tags found :(": "Keine Tags gefunden :("
|
||||
}
|
||||
"No tags found :(": "Keine Tags gefunden :(",
|
||||
"Posted by": "Eingetragen von",
|
||||
"Among with": "<br>Neben mit ",
|
||||
"Among with no break line": "Neben mit ",
|
||||
"Type to search": "Zum Durchsuchen eingeben",
|
||||
"No results for your search, try something different.": "Keine Ergebnisse für deine Suche, versuche es etwas anderes."
|
||||
}
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
"Subscribed!": "Abonniert!",
|
||||
"Subscribe to our newsletter": "Abonnieren Sie unseren Newsletter",
|
||||
"You've successfully subscribed to": "Sie haben",
|
||||
"Your email address": "Seine E-Mail-Adresse",
|
||||
"with the email address": "erfolgreich mit folgender E-Mail Adresse abonniert",
|
||||
"Email cannot be blank.": "Die E-Mail darf nicht leer sein.",
|
||||
"Get the latest posts delivered right to your inbox.": "Holen Sie sich die neuesten Beiträge direkt in Ihren Posteingang.",
|
||||
|
@ -28,5 +29,10 @@
|
|||
"% posts": "% Beiträge",
|
||||
"Tags": "Tags",
|
||||
"with this tag": "mit diesem Tag",
|
||||
"No tags found :(": "Keine Tags gefunden :("
|
||||
}
|
||||
"No tags found :(": "Keine Tags gefunden :(",
|
||||
"Posted by": "Eingetragen von",
|
||||
"Among with": "<br>Neben mit ",
|
||||
"Among with no break line": "Neben mit ",
|
||||
"Type to search": "Zum Durchsuchen eingeben",
|
||||
"No results for your search, try something different.": "Keine Ergebnisse für Ihre Suche, versuchen Sie etwas anderes."
|
||||
}
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
"Subscribed!": "Subscribed!",
|
||||
"Subscribe to our newsletter": "Subscribe to our newsletter",
|
||||
"You've successfully subscribed to": "You've successfully subscribed to",
|
||||
"Your email address": "Your email address",
|
||||
"with the email address": "with the email address",
|
||||
"Email cannot be blank.": "Email cannot be blank.",
|
||||
"Get the latest posts delivered right to your inbox.": "Get the latest posts delivered right to your inbox.",
|
||||
|
@ -28,5 +29,10 @@
|
|||
"% posts": "% posts",
|
||||
"Tags": "Tags",
|
||||
"with this tag": "with this tag",
|
||||
"No tags found :(": "No tags found :("
|
||||
}
|
||||
"No tags found :(": "No tags found :(",
|
||||
"Posted by": "Posted by",
|
||||
"Among with": "<br>Among with ",
|
||||
"Among with no break line": "Among with ",
|
||||
"Type to search": "Type to search",
|
||||
"No results for your search, try something different.": "No results for your search, try something different."
|
||||
}
|
||||
|
|
38
locales/es.json
Normal file
38
locales/es.json
Normal file
|
@ -0,0 +1,38 @@
|
|||
{
|
||||
"Page": "Página",
|
||||
"of": "de",
|
||||
"Published with": "Publicado con",
|
||||
"Subscribe": "Suscríbete",
|
||||
"Subscribe to": "Suscríbete a",
|
||||
"Subscribed!": "Suscrito!",
|
||||
"Subscribe to our newsletter": "Suscríbete a nuestro Newsletter",
|
||||
"You've successfully subscribed to": "Te has suscrito con éxito a",
|
||||
"Your email address": "Tu dirección de correo",
|
||||
"with the email address": "con la dirección de correo",
|
||||
"Email cannot be blank.": "El email no puede estar vacío.",
|
||||
"Get the latest posts delivered right to your inbox.": "Recibe los últimos artículos directamente en tu bandeja de entrada.",
|
||||
"Stay up to date! Get all the latest & greatest posts delivered straight to your inbox.": "Mantente al día! Recibe todos los mejores y más recientes artículos directamente en tu bandeja de entrada.",
|
||||
"Recommended for you": "Recomendado para ti",
|
||||
"Featured": "Destacado",
|
||||
"Page not found": "Página no encontrada",
|
||||
"Unfortunately the page you were looking for could not be found.": "Desafortunadamente, la página que estabas buscando no pudo ser encontrada.",
|
||||
"Back to home": "Regresar al inicio",
|
||||
"Go to the home page": "Ir a la página de inicio",
|
||||
"Recent articles": "Artículos recientes",
|
||||
"No recent articles found :(": "No se han encontrado artículos recientes :(",
|
||||
"1 min read": "1 min de lectura",
|
||||
"% min read": "% min de lectura",
|
||||
"No posts": "No hay artículos",
|
||||
"No posts found": "No se encontraron artículos",
|
||||
"Apparently there are no posts at the moment, check again later.": "Aparentemente no hay artículos en este momento, revisa más tarde.",
|
||||
"1 post": "Un artículo",
|
||||
"% posts": "% artículos",
|
||||
"Tags": "Etiquetas",
|
||||
"with this tag": "con esta etiqueta",
|
||||
"No tags found :(": "No se encontraron etiquetas :(",
|
||||
"Posted by": "Publicado por",
|
||||
"Among with": "<br>Junto con ",
|
||||
"Among with no break line": "Junto con ",
|
||||
"Type to search": "Escribe para buscar",
|
||||
"No results for your search, try something different.": "No hay resultados para tu búsqueda, prueba algo diferente."
|
||||
}
|
|
@ -54,5 +54,5 @@
|
|||
"desktop": "assets/screenshot-desktop.jpg",
|
||||
"mobile": "assets/screenshot-mobile.jpg"
|
||||
},
|
||||
"version": "0.2.2"
|
||||
"version": "0.2.3"
|
||||
}
|
|
@ -12,7 +12,7 @@
|
|||
<div class="m-article-card__picture">
|
||||
{{/if}}
|
||||
<a href="{{url}}" class="m-article-card__picture-link" aria-label="Article"></a>
|
||||
<a href="{{primary_author.url}}" class="m-article-card__author js-tooltip" aria-label="Authors" data-tippy-content="Posted by {{primary_author.name}} {{authors autolink="false" from="2" prefix="<br>Among with " separator=" , "}}">
|
||||
<a href="{{primary_author.url}}" class="m-article-card__author js-tooltip" aria-label="Authors" data-tippy-content="{{t "Posted by"}} {{primary_author.name}} {{authors autolink="false" from="2" prefix=(t "Among with") separator=" , "}}">
|
||||
{{#if primary_author.profile_image}}
|
||||
<div style="background-image: url({{primary_author.profile_image}});"></div>
|
||||
{{else}}
|
||||
|
@ -20,7 +20,7 @@
|
|||
{{/if}}
|
||||
</a>
|
||||
{{#if featured}}
|
||||
<a href="{{url}}" class="m-article-card__featured js-tooltip" data-tippy-content="Featured" aria-label="Article">
|
||||
<a href="{{url}}" class="m-article-card__featured js-tooltip" data-tippy-content="{{t "Featured"}}" aria-label="Article">
|
||||
<span class="icon-star"></span>
|
||||
</a>
|
||||
{{/if}}
|
||||
|
|
|
@ -12,9 +12,10 @@ follow the instructions to enable the search feature.
|
|||
<form class="m-search__form">
|
||||
<fieldset>
|
||||
<span class="icon-search m-search-icon"></span>
|
||||
<input type="text" class="m-input in-search js-input-search" placeholder="Type to search" aria-label="Type to search">
|
||||
<input type="text" class="m-input in-search js-input-search" placeholder="{{t "Type to search"}}" aria-label="Type to search">
|
||||
</fieldset>
|
||||
</form>
|
||||
<div class="js-search-results"></div>
|
||||
<div class="js-search-results hide"></div>
|
||||
<p class="m-no-found align-center hide js-no-results">{{t "No results for your search, try something different."}}</>
|
||||
</div>
|
||||
</div>
|
||||
|
|
4
post.hbs
4
post.hbs
|
@ -77,7 +77,7 @@ into the {body} of the default.hbs template --}}
|
|||
input_class="m-input in-subscribe-section"
|
||||
button_id="subscribe_button"
|
||||
button_class="m-button primary block"
|
||||
placeholder="Your email address"
|
||||
placeholder=(t "Your email address")
|
||||
}}
|
||||
</div>
|
||||
</div>
|
||||
|
@ -105,7 +105,7 @@ into the {body} of the default.hbs template --}}
|
|||
</h4>
|
||||
{{#has author="count:>1"}}
|
||||
<p class="m-small-text in-author-along-with">
|
||||
{{authors separator=", " prefix="Among with " from="2"}}
|
||||
{{authors separator=", " prefix=(t "Among with no break line") from="2"}}
|
||||
</p>
|
||||
{{/has}}
|
||||
{{#if primary_author.bio}}
|
||||
|
|
|
@ -20,6 +20,7 @@ $(document).ready(() => {
|
|||
const $search = $('.js-search')
|
||||
const $inputSearch = $('.js-input-search')
|
||||
const $searchResults = $('.js-search-results')
|
||||
const $searchNoResults = $('.js-no-results')
|
||||
|
||||
const headerHeight = $header.outerHeight()
|
||||
|
||||
|
@ -195,12 +196,18 @@ $(document).ready(() => {
|
|||
</article>`
|
||||
}
|
||||
|
||||
$searchNoResults.hide()
|
||||
$searchResults.html(htmlString)
|
||||
$searchResults.show()
|
||||
} else {
|
||||
$searchResults.html('<p class="m-no-found align-center">0 results for your search, try something different.</>')
|
||||
$searchResults.html('')
|
||||
$searchResults.hide()
|
||||
$searchNoResults.show()
|
||||
}
|
||||
} else {
|
||||
$searchResults.html('')
|
||||
$searchResults.hide()
|
||||
$searchNoResults.hide()
|
||||
}
|
||||
})
|
||||
|
||||
|
|
|
@ -30,7 +30,7 @@ into the {body} of the default.hbs template --}}
|
|||
input_class="m-input in-subscribe-section"
|
||||
button_id="subscribe_button"
|
||||
button_class="m-button primary block"
|
||||
placeholder="Your email address"
|
||||
placeholder=(t "Your email address")
|
||||
autofocus="true"
|
||||
}}
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue