lato_spaces 3.1.12 → 3.1.13

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f12e83b0826f21aecfc89708b32d15a34bea7c5d6618c443861114200e15688b
4
- data.tar.gz: bd43cb9d3e0f498189b55f64753a3f4fd0a0bb5adf42bf48fae656da8e861e3d
3
+ metadata.gz: f791cf71fa264c395349b35419296adda1859ec3d778ac53a9bcc5c885056f6f
4
+ data.tar.gz: dc0715dd620e34a856b5147271d6dc0d31b05708688f43069f24cecf4f8a84b3
5
5
  SHA512:
6
- metadata.gz: 21a35591b29ddcc5ff66049b79138ae0fd2992b5c4e50e79fb5cb1023681e0dd41823b8cc1ca47df2e985909cefcf4aa0c1bfb27e39175a15aa022e5f2365763
7
- data.tar.gz: cbef94da69e3eb4f9eaa3807706d35a457f5c9ba32e41f67ea04c2b83a532656994ab3303d0d789c5449e6f0fb983670eefe5195707d14c264b39d00fcb0cf48
6
+ metadata.gz: 43e6b79b784871e895575e7840000117d23c155bb2827db927f90e7d89a4b630f15ec0b4fd7f883c22c8f46d0d1ab6ebd9dca4ff47a58d9ca58c84a038c1a15e
7
+ data.tar.gz: 7de4af07b22e1a131e54685fb322b4924389afc0d4b4bea0dd001e4bec84b8419596dbe6801a1e994d16dab9e3f4547f8d755166279c5db66caf06d3e62aeca0
@@ -4,7 +4,7 @@ module LatoSpaces
4
4
 
5
5
  def lato_spaces_group_actions(group)
6
6
  content_tag(:div, class: 'btn-group btn-group-sm') do
7
- concat link_to('View', lato_spaces.groups_show_path(group), class: 'btn btn-primary')
7
+ concat link_to(I18n.t('lato_spaces.cta_view'), lato_spaces.groups_show_path(group), class: 'btn btn-primary')
8
8
  end
9
9
  end
10
10
  end
@@ -17,9 +17,9 @@ module LatoSpaces
17
17
  def lato_spaces_membership_actions(membership)
18
18
  content_tag(:div, class: 'btn-group btn-group-sm') do
19
19
  if membership.lato_invitation
20
- concat link_to('Resend', lato_spaces.memberships_send_invite_action_path(membership), class: 'btn btn-primary', data: { turbo_confirm: 'Are you sure?', turbo_method: :post })
20
+ concat link_to(I18n.t('lato_spaces.cta_resend'), lato_spaces.memberships_send_invite_action_path(membership), class: 'btn btn-primary', data: { turbo_confirm: 'Are you sure?', turbo_method: :post })
21
21
  end
22
- concat link_to('Delete', lato_spaces.memberships_destroy_action_path(membership), class: 'btn btn-danger', data: { turbo_confirm: 'Are you sure?', turbo_method: :delete })
22
+ concat link_to(I18n.t('lato_spaces.cta_delete'), lato_spaces.memberships_destroy_action_path(membership), class: 'btn btn-danger', data: { turbo_confirm: 'Are you sure?', turbo_method: :delete })
23
23
  end
24
24
  end
25
25
  end
@@ -11,7 +11,7 @@
11
11
  <%= render 'layouts/lato_spaces/group-form-extra_content', form: form %>
12
12
 
13
13
  <div class="d-flex justify-content-end">
14
- <%= lato_form_submit form, group.persisted? ? 'Update' : 'Confirm', class: %w[btn-success] %>
14
+ <%= lato_form_submit form, group.persisted? ? I18n.t('lato_spaces.cta_update') : I18n.t('lato_spaces.cta_confirm'), class: %w[btn-success] %>
15
15
  </div>
16
16
  <% end %>
17
17
  <% end %>
@@ -7,8 +7,8 @@
7
7
  <div class="card-header d-flex justify-content-between align-items-center">
8
8
  <h2 class="fs-4 mb-0"><%= I18n.t('lato_spaces.group_informations') %></h2>
9
9
  <div class="btn-group btn-group-sm" role="group">
10
- <%= link_to 'Edit', lato_spaces.groups_update_path(@group), class: 'btn btn-primary', data: { lato_action_target: 'trigger', turbo_frame: dom_id(@group, 'form'), action_title: I18n.t('lato_spaces.edit_group') } %>
11
- <%= link_to 'Delete', lato_spaces.groups_destroy_action_path(@group), class: 'btn btn-danger', data: { turbo_confirm: 'Are you sure?', turbo_method: :delete } %>
10
+ <%= link_to I18n.t('lato_spaces.cta_edit'), lato_spaces.groups_update_path(@group), class: 'btn btn-primary', data: { lato_action_target: 'trigger', turbo_frame: dom_id(@group, 'form'), action_title: I18n.t('lato_spaces.edit_group') } %>
11
+ <%= link_to I18n.t('lato_spaces.cta_delete'), lato_spaces.groups_destroy_action_path(@group), class: 'btn btn-danger', data: { turbo_confirm: 'Are you sure?', turbo_method: :delete } %>
12
12
  </div>
13
13
  </div>
14
14
  <div class="card-body">
@@ -26,7 +26,7 @@
26
26
  create: {
27
27
  path: lato_spaces.memberships_create_path(@group),
28
28
  icon: 'bi bi-plus',
29
- data: { lato_action_target: 'trigger', turbo_frame: dom_id(LatoSpaces::Membership.new, 'form'), action_title: 'New membership' }
29
+ data: { lato_action_target: 'trigger', turbo_frame: dom_id(LatoSpaces::Membership.new, 'form'), action_title: I18n.t('lato_spaces.new_membership') }
30
30
  }
31
31
  }
32
32
  %>
@@ -9,7 +9,7 @@
9
9
  </div>
10
10
 
11
11
  <div class="d-flex justify-content-end">
12
- <%= lato_form_submit form, 'Confirm', class: %w[btn-success] %>
12
+ <%= lato_form_submit form, I18n.t('lato_spaces.cta_confirm'), class: %w[btn-success] %>
13
13
  </div>
14
14
  <% end %>
15
15
  <% end %>
@@ -1,6 +1,6 @@
1
- <%= lato_page_head 'New membership', [
1
+ <%= lato_page_head I18n.t('lato_spaces.new_membership'), [
2
2
  { label: I18n.t('lato_spaces.spaces'), path: lato_spaces.root_path },
3
- { label: 'Groups', path: lato_spaces.groups_path },
3
+ { label: I18n.t('lato_spaces.groups'), path: lato_spaces.groups_path },
4
4
  { label: @group.name, path: lato_spaces.groups_show_path(@group) }
5
5
  ] %>
6
6
 
@@ -11,6 +11,13 @@ en:
11
11
  group_members: Group members
12
12
  group_informations: Group informations
13
13
  cta_new_group: Create new group
14
+ cta_view: View
15
+ cta_confirm: Confirm
16
+ cta_update: Update
17
+ cta_edit: Edit
18
+ cta_delete: Delete
19
+ cta_resend: Resend
20
+ new_membership: New membership
14
21
  activerecord:
15
22
  attributes:
16
23
  lato_spaces/membership:
@@ -0,0 +1,28 @@
1
+ it:
2
+ lato_spaces:
3
+ space: Space
4
+ spaces: Spaces
5
+ group: Gruppo
6
+ groups: Gruppi
7
+ welcome: Ciao <b>%{user}</b>!<b> Seleziona il gruppo</b> con cui vuoi lavorare.
8
+ cta_manage_groups: Gestisci gruppi
9
+ new_group: Nuovo gruppo
10
+ edit_group: Modifica gruppo
11
+ group_members: Membri del gruppo
12
+ group_informations: Informazioni del gruppo
13
+ cta_new_group: Crea nuovo gruppo
14
+ cta_view: Visualizza
15
+ cta_confirm: Conferma
16
+ cta_update: Aggiorna
17
+ cta_edit: Modifica
18
+ cta_delete: Cancella
19
+ cta_resend: Reinvia
20
+ new_membership: Nuova iscrizione
21
+ activerecord:
22
+ attributes:
23
+ lato_spaces/group:
24
+ name: Nome
25
+ actions: Azioni
26
+ lato_spaces/membership:
27
+ user_infos: Utente
28
+ actions: Azioni
@@ -1,3 +1,3 @@
1
1
  module LatoSpaces
2
- VERSION = "3.1.12"
2
+ VERSION = "3.1.13"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lato_spaces
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.12
4
+ version: 3.1.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gregorio Galante
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-12-09 00:00:00.000000000 Z
11
+ date: 2023-12-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -77,6 +77,7 @@ files:
77
77
  - app/views/layouts/lato_spaces/_group-form-extra_content.html.erb
78
78
  - app/views/layouts/lato_spaces/_group-informations_content.html.erb
79
79
  - config/locales/en.yml
80
+ - config/locales/it.yml
80
81
  - config/routes.rb
81
82
  - db/migrate/20231101082505_add_lato_spaces_admin_to_lato_user.rb
82
83
  - db/migrate/20231102082229_create_lato_spaces_groups.rb