awesome_translations 0.0.64 → 0.0.66
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d460ee15bd42bacf6aa5ec1adb1438e8cffb81e929ee20a7dbcdec73d4dd2c43
|
4
|
+
data.tar.gz: 3f53538bf471e18e31abbf5475d799b0f786cd4e7aa53322a29d8c69cdf186c6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2da3bfe416adf369ed0b665231a0228cc9005ce8471478e95c1fb1a16cbc7da842b7d62f3c459a4fd349ad6a8dbe6cd1a5c2a19985682f20e98ee38f1b421fa3
|
7
|
+
data.tar.gz: 0a4cf304c668d621b91b448c10e5624ed5cb02c29209f83df648cd8162dcefc12b8633e6d271ddc444a667a0d916a7d9c86a0ffb57102a0c5480cb4ec3d99b08
|
@@ -53,7 +53,7 @@
|
|
53
53
|
</td>
|
54
54
|
<% I18n.available_locales.each do |locale| %>
|
55
55
|
<td class="translation">
|
56
|
-
<%= text_field "t", "#{translation.key}[#{locale}]", class: "translation-input", lang: locale, value: translation.translation_value(locale: locale) %>
|
56
|
+
<%= text_field "t", "#{translation.key}[#{locale}]", class: "translation-input", lang: locale, name: "t[#{translation.key}][#{locale}]", value: translation.translation_value(locale: locale) %>
|
57
57
|
</td>
|
58
58
|
<% end %>
|
59
59
|
</tr>
|
@@ -2,7 +2,7 @@ class AwesomeTranslations::ErbInspector::FileInspector
|
|
2
2
|
JS_FILE_EXTS = [".cjs", ".coffee", ".coffee.erb", ".es6", ".es6.erb", ".js", ".js.erb", ".jsx", ".mjs"].freeze
|
3
3
|
METHOD_NAMES = %w[t controller_t helper_t].freeze
|
4
4
|
VALID_BEGINNING = '(^|\s+|\(|\{|\[|<%=\s*|I18n\.)'.freeze
|
5
|
-
VALID_BEGINNING_JS = '(^|\s+|\(|\[
|
5
|
+
VALID_BEGINNING_JS = '(^|\s+|\(|\[|\{|\.)'.freeze
|
6
6
|
|
7
7
|
attr_reader :root_path, :file_path
|
8
8
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: awesome_translations
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.66
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kasper Stöckel
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-06-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: active-record-transactioner
|