Modelo EJS i18n
Sails.js Tech Brasil
Copie o código-fonte desta página traduzida e cole no seu projeto Sails no arquivo \views\pages\layout.ejs.
← Ver Outros Modelos
<% if(typeof me === 'undefined') {
// In case we're displaying the 404 or 500 page and relevant code in the "custom" hook was not able to run,
// we make sure `me` exists. This ensures we don't have to do `typeof` checks below.
var me = undefined;
} %>
NEW_APP_NAME
<% /* Viewport tag for sensible mobile support */ %>
<% /* Script tags should normally be included further down the page- but any
scripts that load fonts (e.g. Fontawesome ≥v5) are special exceptions to the
rule. (Include them up here along with any hard-coded «link» tags for Typekit,
Google Fonts, etc. - above the «body» to prevent the page flickering when fonts
load.) */ %>
<% /* Certain scripts, normally analytics tools like Google Tag Manager and
Google Analytics, should only be included in production: */
if (sails.config.environment === 'production') { %>
<% }
/* Otherwise, any such scripts are excluded, and we instead inject a
robots/noindex meta tag to help prevent any unwanted visits from search engines. */
else { %>
<% } %>
<% /*
Stylesheets
========================
Stylesheets can be hard-coded as «link» tags, automatically injected
by the asset pipeline between "STYLES" and "STYLES END", or both.
(https://sailsjs.com/docs/concepts/assets/task-automation)
*/ %>
<% /* Auto-injected «link» tags: */ %>
<% if(me&&me.emailChangeCandidate) { %>
<%=__('Your updated email address needs verification')%> <%= me.emailChangeCandidate %>,
<%=__('You will still need to sign in as')%> <%= me.emailAddress %>.
<% } else if(me&&me.emailStatus === 'unconfirmed') { %>
<%=__('Your updated email address needs verification')%>
<%= me.emailChangeCandidate ? me.emailChangeCandidate : me.emailAddress%>.
<% } %>
<%- body %>
📚 Para Saber Mais & Continuar Aprendendo: