1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-08-02 20:15:22 +02:00

Start I18n Internationalization setup (#276)

* start internationalization_setup

* add passwords views translations

* add account views translations

* fix translations

* temporary disable i18n used key
This commit is contained in:
Ricardo Siqueira de Oliveira Leite 2024-02-06 14:58:17 -03:00 committed by GitHub
parent 64c8774867
commit c8a659694d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
33 changed files with 177 additions and 102 deletions

View file

@ -49,20 +49,20 @@
<li>
<%= link_to root_path, class: 'block hover:bg-gray-100 -ml-2 p-2 text-sm font-semibold text-gray-900 flex items-center rounded' do %>
<%= inline_svg_tag('icon-dashboard.svg', class: 'text-black stroke-current mr-2') %>
Dashboard
<%= t('.dashboard') %>
<% end %>
</li>
</ul>
</nav>
<div class="flex flex-col mt-6">
<div class="flex items-center justify-between">
<span class="text-xs">Accounts</span>
<%= link_to new_account_path, class: 'block hover:bg-gray-100 p-2 text-sm font-semibold text-gray-900 flex items-center rounded', title: "New account" do %>
<span class="text-xs"><%= t('.accounts') %></span>
<%= link_to new_account_path, class: 'block hover:bg-gray-100 p-2 text-sm font-semibold text-gray-900 flex items-center rounded', title: t('.new_accoount') do %>
<%= inline_svg_tag('icon-add.svg', class: 'text-gray-500 fill-current') %>
<% end %>
</div>
<div>
<h2 class="text-sm font-semibold font-display">Cash</h2>
<h2 class="text-sm font-semibold font-display"><%= t('.cache') %></h2>
<% Current.family.accounts.each do |account| %>
<div class="flex items-center justify-between py-2">

View file

@ -24,17 +24,17 @@
<%= render "shared/logo" %>
<h2 class="mt-6 text-3xl font-semibold tracking-tight text-center font-display">
<%= content_for?(:header_title) ? yield(:header_title).html_safe : "Your account" %>
<%= content_for?(:header_title) ? yield(:header_title).html_safe : t('.your_account') %>
</h2>
<% if controller_name == "sessions" %>
<p class="mt-2 text-sm text-center text-gray-600">
or <%= link_to "create an account", new_registration_path, class: 'font-medium text-gray-600 hover:text-gray-400 transition' %>
</p>
<p class="mt-2 text-sm text-center text-gray-600">
<%= t('.or') %> <%= link_to t('.sign_up'), new_registration_path, class: 'font-medium text-gray-600 hover:text-gray-400 transition' %>
</p>
<% elsif controller_name == "registrations" %>
<p class="mt-2 text-sm text-center text-gray-600">
or <%= link_to "sign in to your account", new_session_path, class: 'font-medium text-gray-600 hover:text-gray-400 transition' %>
</p>
<p class="mt-2 text-sm text-center text-gray-600">
<%= t('.or') %> <%= link_to t('.sign_in'), new_session_path, class: 'font-medium text-gray-600 hover:text-gray-400 transition' %>
</p>
<% end %>
</div>
@ -44,7 +44,7 @@
</div>
<div class="p-8 mt-2 text-center">
<p class="mt-6 text-sm text-black"><a href="/privacy" class="font-medium text-gray-600 hover:text-gray-400 transition">Privacy Policy</a> &bull; <a href="/terms" class="font-medium text-gray-600 hover:text-gray-400 transition">Terms of Service</a></p>
<p class="mt-6 text-sm text-black"><%= link_to t('.privacy_policy'), "/privacy", class: "font-medium text-gray-600 hover:text-gray-400 transition" %> &bull; <%= link_to t('.terms_of_service'), "/terms", class: "font-medium text-gray-600 hover:text-gray-400 transition" %></p>
</div>
</div>