views/onboardings i18n (#15018)

* views/onboardings i18n

* reformat for PR

* remove ja.yml
This commit is contained in:
yheuhtozr 2021-10-13 19:26:07 +09:00 committed by GitHub
parent ee0bf55085
commit 9faf136db1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 31 additions and 7 deletions

View file

@ -17,7 +17,7 @@
</style>
<div class="onboarding-task-card" role="dialog" aria-labelledby="task-card-title" aria-describedby="task-card-subtitle">
<button class="close" onclick="closeTaskCard()" aria-label="Close Welcome Message">
<button class="close" onclick="closeTaskCard()" aria-label="<%= t("views.onboardings.close") %>">
<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M6.99974 5.58623L11.9497 0.63623L13.3637 2.05023L8.41374 7.00023L13.3637 11.9502L11.9497 13.3642L6.99974 8.41423L2.04974 13.3642L0.635742 11.9502L5.58574 7.00023L0.635742 2.05023L2.04974 0.63623L6.99974 5.58623Z" fill="white" />
</svg>
@ -27,26 +27,26 @@
<img alt="onboarding task card image" class="task-card-image" src="<%= Settings::General.logo_png %>" />
</div>
<h2 class="task-card-title" id="task-card-title">You're now a part of the community!</h2>
<p id="task-card-subtitle" class="task-card-subtitle">SUGGESTED THINGS YOU CAN DO</p>
<h2 class="task-card-title" id="task-card-title"><%= t("views.onboardings.heading") %></h2>
<p id="task-card-subtitle" class="task-card-subtitle"><%= t("views.onboardings.subtitle") %></p>
<ul class="task-card-actions">
<li class="task-card-action">
<a class="task-card-link" href="/welcome">
<p><span class="emoji">😊</span>Join the Welcome thread</p>
<p><%= t("views.onboardings.welcome_html") %></p>
<svg width="8" height="14" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M5.172 7L.222 2.05 1.636.636 8 7l-6.364 6.364L.222 11.95 5.172 7z" fill="#fff" /></svg>
</a>
</li>
<li class="task-card-action">
<a class="task-card-link" href="/new">
<p><span class="emoji">✍🏾</span>Write your first <%= community_name %> post</p>
<p><%= t("views.onboardings.write_html", community: community_name) %></p>
<svg width="8" height="14" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M5.172 7L.222 2.05 1.636.636 8 7l-6.364 6.364L.222 11.95 5.172 7z" fill="#fff" /></svg>
</a>
</li>
<li class="task-card-action">
<a class="task-card-link" href="/settings">
<p><span class="emoji">💅🏼</span>Customize your profile</p>
<p><%= t("views.onboardings.settings_html") %></p>
<svg width="8" height="14" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M5.172 7L.222 2.05 1.636.636 8 7l-6.364 6.364L.222 11.95 5.172 7z" fill="#fff" /></svg>
</a>
</li>

View file

@ -1,4 +1,4 @@
<% title "Welcome to #{community_name}" %>
<% title t("views.onboardings.meta.title", community: community_name) %>
<style>
<% cache(release_adjusted_cache_key("onboarding-css"), expires_in: 10.hours) do %>

View file

@ -0,0 +1,12 @@
---
en:
views:
onboardings:
meta:
title: Welcome to %{community}
heading: You're now a part of the community!
subtitle: SUGGESTED THINGS YOU CAN DO
close: Close Welcome Message
settings_html: "<span class=\"emoji\">💅🏼</span>Customize your profile"
welcome_html: "<span class=\"emoji\">😊</span>Join the Welcome thread"
write_html: "<span class=\"emoji\">✍🏾</span>Write your first %{community} post"

View file

@ -0,0 +1,12 @@
---
fr:
views:
onboardings:
meta:
title: Welcome to %{community}
heading: You're now a part of the community!
subtitle: SUGGESTED THINGS YOU CAN DO
close: Close Welcome Message
settings_html: "<span class=\"emoji\">💅🏼</span>Customize your profile"
welcome_html: "<span class=\"emoji\">😊</span>Join the Welcome thread"
write_html: "<span class=\"emoji\">✍🏾</span>Write your first %{community} post"