lesli_babel 1.1.0 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 88fc4de819772e6d03568b1161e9cb96faac1fa988ea643c3151e378bd68a6e3
4
- data.tar.gz: 3f42ae5f0330d3e172420ef0e6c10d5c35423e8abaf7b9be28542dbdffae3640
3
+ metadata.gz: 89a771fb721d2c01fd8cc3c7a6c309a7ed102bff7381013a7cb4dcc9323317df
4
+ data.tar.gz: 4e736b6fdb2726a3f56b29a905d3c60a962f82ede7709e549af737406626a0c7
5
5
  SHA512:
6
- metadata.gz: 91fda86cf3fb7059268f9507dfa28a7d5e47497d0ab13ca7b35e9f83edf05e349eb257a36e9117e2743f940ac64ee85f8c2b3709cb68e447ca2a8a42572e5c6c
7
- data.tar.gz: 31a6dc992d1503ee8ea3f0aa64a7d2652b50e830d5ddbd8c9e32954bb4e432b2937aa97e508960e480b5774eec53a7037d0fd7a3f7d2b96417b366477c11a620
6
+ metadata.gz: 639892e037b491a7a6e3a198eab82c9c45505c19730cd10cd3d275d52b779b635024eb799c17384c4338da026a285eeaa08222d4345e216559750d51b710bf0c
7
+ data.tar.gz: 3387e4faa48b35730ded81c3ff38fe3bd025539f8cd6f8c93a8b15247d0859d4c73111b9d50aab3b7344173b076202d70c72c945aa6562b470e12036c6e925a1
@@ -0,0 +1,35 @@
1
+ @charset "UTF-8";
2
+ /*
3
+
4
+ Lesli
5
+
6
+ Copyright (c) 2026, Lesli Technologies, S. A.
7
+
8
+ This program is free software: you can redistribute it and/or modify
9
+ it under the terms of the GNU General Public License as published by
10
+ the Free Software Foundation, either version 3 of the License, or
11
+ (at your option) any later version.
12
+
13
+ This program is distributed in the hope that it will be useful,
14
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
15
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
+ GNU General Public License for more details.
17
+
18
+ You should have received a copy of the GNU General Public License
19
+ along with this program. If not, see http://www.gnu.org/licenses/.
20
+
21
+ Lesli · Ruby on Rails SaaS Development Framework.
22
+
23
+ Made with ♥ by LesliTech
24
+ Building a better future, one line of code at a time.
25
+
26
+ @contact hello@lesli.tech
27
+ @website https://www.lesli.tech
28
+ @license GPLv3 http://www.gnu.org/licenses/gpl-3.0.en.html
29
+
30
+ // · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~
31
+ // ·
32
+ */
33
+ body.lesli-babel.dashboards .box {
34
+ min-width: 240px;
35
+ }
@@ -65,7 +65,7 @@ module LesliBabel
65
65
 
66
66
  end
67
67
 
68
- Lesli.config.locales.keys.each do |locale|
68
+ I18n.available_locales.each do |locale|
69
69
 
70
70
  # if translation changed
71
71
  if @label[locale] != label_params[locale]
@@ -115,7 +115,7 @@ module LesliBabel
115
115
  :status,
116
116
  :context,
117
117
  :bucket_id,
118
- Lesli.config.locales.keys
118
+ I18n.available_locales
119
119
  )
120
120
  end
121
121
  end
@@ -28,7 +28,7 @@ module LesliBabel
28
28
  :text,
29
29
  :status,
30
30
  :context,
31
- Lesli.config.locales.keys,
31
+ Lesli.config.babel.dig(:locales).keys,
32
32
  "lesli_babel_modules.id as engine_id",
33
33
  "lesli_babel_buckets.id as bucket_id",
34
34
  "lesli_babel_buckets.code as bucket_code",
@@ -12,7 +12,7 @@ module LesliBabel
12
12
  # total translations by language
13
13
  total_strings_translations = []
14
14
 
15
- Lesli.config.locales.each do |locale|
15
+ Lesli.config.babel.dig(:locales).each do |locale|
16
16
  total_strings_translations.push({
17
17
  code: locale[0],
18
18
  name: locale[1],
@@ -69,7 +69,7 @@ module LesliBabel
69
69
 
70
70
  translations = {}
71
71
 
72
- available_locales = Lesli.config.locales.keys
72
+ available_locales = I18n.available_locales
73
73
 
74
74
  # add key for every available language (required by i18n Rails gem)
75
75
  available_locales.each do |lang|
@@ -11,7 +11,7 @@
11
11
  <% form.fieldset(label_status, category:label_category) do %>
12
12
 
13
13
  <% if @label.new_record? %>
14
- <%= form.field_control_select(:bucket_id, @module.buckets.pluck(:code, :id)) %>
14
+ <%= form.field_control_select(:bucket_id, @module.buckets.order(:code).pluck(:code, :id)) %>
15
15
  <%= form.field_control_select(:prefix, LesliBabel::Label.prefixes) %>
16
16
  <%= form.field_control(:text) %>
17
17
  <%= form.field_control(:context) %>
@@ -5,9 +5,9 @@ columns = [{
5
5
  }, {
6
6
  label: 'Label to translate',
7
7
  field: 'text'
8
- }, {
9
- label: 'English',
10
- field: 'en'
8
+ #}, {
9
+ # label: 'English',
10
+ # field: 'en'
11
11
  }, {
12
12
  label: 'Path',
13
13
  field: 'path'
@@ -32,9 +32,9 @@ columns = [{
32
32
  <% row.with_cell do %>
33
33
  <%= turbo_link_to(record["text"], label_path(record["id"])) %>
34
34
  <% end %>
35
- <% row.with_cell do %>
36
- <%= turbo_link_to(record["en"] || "", label_path(record["id"])) %>
37
- <% end %>
35
+ <%# row.with_cell do %>
36
+ <%#= turbo_link_to(record["en"] || "", label_path(record["id"])) %>
37
+ <%# end %>
38
38
  <% row.with_cell do %>
39
39
  <div x-data="{ copied: false }">
40
40
  <button
@@ -40,8 +40,8 @@ module LesliBabel
40
40
  config.assets.precompile += %w[lesli_babel_manifest.js]
41
41
 
42
42
  # set locales (from initializer)
43
- config.i18n.default_locale = Lesli.config.locales.keys.first || :en
44
- config.i18n.available_locales = Lesli.config.locales.keys || [:en]
43
+ config.i18n.default_locale = Lesli.config.babel.dig(:locales).keys.first || :en
44
+ config.i18n.available_locales = Lesli.config.babel.dig(:locales).keys || [:en]
45
45
 
46
46
  config.i18n.load_path += Dir["#{Lesli::Engine.root.to_s}/config/locales/*.yml"]
47
47
 
@@ -1,4 +1,4 @@
1
1
  module LesliBabel
2
- VERSION = "1.1.0"
3
- BUILD = "1777771350"
2
+ VERSION = "1.1.1"
3
+ BUILD = "1780272810"
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lesli_babel
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - The Lesli Development Team