packwerk 3.2.0 → 3.2.2
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 +4 -4
- data/lib/packwerk/association_inspector.rb +17 -4
- data/lib/packwerk/checker.rb +3 -3
- data/lib/packwerk/configuration.rb +4 -0
- data/lib/packwerk/const_node_inspector.rb +2 -2
- data/lib/packwerk/constant_name_inspector.rb +2 -2
- data/lib/packwerk/offenses_formatter.rb +3 -3
- data/lib/packwerk/package.rb +1 -1
- data/lib/packwerk/package_todo.rb +1 -4
- data/lib/packwerk/parsers/factory.rb +3 -3
- data/lib/packwerk/parsers/ruby.rb +7 -0
- data/lib/packwerk/reference_extractor.rb +29 -1
- data/lib/packwerk/reference_offense.rb +1 -1
- data/lib/packwerk/run_context.rb +15 -4
- data/lib/packwerk/validator.rb +3 -3
- data/lib/packwerk/version.rb +1 -1
- data/lib/packwerk.rb +1 -0
- data/sorbet/config +1 -0
- data/sorbet/rbi/gems/actionpack@7.0.3.1.rbi +3280 -3450
- data/sorbet/rbi/gems/actionview@7.0.3.1.rbi +2322 -1782
- data/sorbet/rbi/gems/activesupport@7.0.3.1.rbi +2654 -3268
- data/sorbet/rbi/gems/ast@2.4.2.rbi +535 -6
- data/sorbet/rbi/gems/better_html@2.0.1.rbi +529 -0
- data/sorbet/rbi/gems/builder@3.2.4.rbi +4 -4
- data/sorbet/rbi/gems/byebug@11.1.3.rbi +32 -4
- data/sorbet/rbi/gems/concurrent-ruby@1.1.10.rbi +1750 -1840
- data/sorbet/rbi/gems/constant_resolver@0.2.0.rbi +15 -15
- data/sorbet/rbi/gems/crass@1.0.6.rbi +489 -5
- data/sorbet/rbi/gems/erubi@1.11.0.rbi +24 -21
- data/sorbet/rbi/gems/i18n@1.12.0.rbi +395 -395
- data/sorbet/rbi/gems/json@2.6.2.rbi +70 -77
- data/sorbet/rbi/gems/language_server-protocol@3.16.0.3.rbi +1 -1
- data/sorbet/rbi/gems/loofah@2.18.0.rbi +134 -134
- data/sorbet/rbi/gems/m@1.6.0.rbi +60 -60
- data/sorbet/rbi/gems/method_source@1.1.0.rbi +303 -0
- data/sorbet/rbi/gems/minitest-focus@1.3.1.rbi +22 -28
- data/sorbet/rbi/gems/minitest@5.16.2.rbi +384 -396
- data/sorbet/rbi/gems/mocha@1.14.0.rbi +589 -589
- data/sorbet/rbi/gems/netrc@0.11.0.rbi +37 -32
- data/sorbet/rbi/gems/nokogiri@1.15.3.rbi +962 -946
- data/sorbet/rbi/gems/{parallel@1.22.1.rbi → parallel@1.24.0.rbi} +85 -82
- data/sorbet/rbi/gems/{parser@3.2.2.0.rbi → parser@3.3.1.0.rbi} +1679 -1609
- data/sorbet/rbi/gems/prettier_print@0.1.0.rbi +1 -1
- data/sorbet/rbi/gems/{prism@0.24.0.rbi → prism@0.27.0.rbi} +13473 -6472
- data/sorbet/rbi/gems/{racc@1.6.0.rbi → racc@1.7.1.rbi} +42 -33
- data/sorbet/rbi/gems/rack-test@2.0.2.rbi +148 -338
- data/sorbet/rbi/gems/rack@2.2.4.rbi +1079 -1130
- data/sorbet/rbi/gems/rails-dom-testing@2.0.3.rbi +354 -22
- data/sorbet/rbi/gems/rails-html-sanitizer@1.4.3.rbi +113 -259
- data/sorbet/rbi/gems/railties@7.0.3.1.rbi +642 -638
- data/sorbet/rbi/gems/rainbow@3.1.1.rbi +109 -99
- data/sorbet/rbi/gems/rake@13.0.6.rbi +714 -599
- data/sorbet/rbi/gems/{rbi@0.0.15.rbi → rbi@0.1.12.rbi} +865 -801
- data/sorbet/rbi/gems/regexp_parser@2.5.0.rbi +853 -870
- data/sorbet/rbi/gems/rexml@3.2.5.rbi +480 -477
- data/sorbet/rbi/gems/rubocop-ast@1.21.0.rbi +1621 -1622
- data/sorbet/rbi/gems/rubocop-performance@1.14.3.rbi +507 -526
- data/sorbet/rbi/gems/rubocop-shopify@2.9.0.rbi +1 -1
- data/sorbet/rbi/gems/rubocop-sorbet@0.6.11.rbi +186 -203
- data/sorbet/rbi/gems/rubocop@1.34.1.rbi +8126 -8367
- data/sorbet/rbi/gems/{ruby-lsp@0.2.1.rbi → ruby-lsp@0.2.3.rbi} +2 -2
- data/sorbet/rbi/gems/ruby-progressbar@1.11.0.rbi +1235 -4
- data/sorbet/rbi/gems/smart_properties@1.17.0.rbi +90 -90
- data/sorbet/rbi/gems/spoom@1.3.2.rbi +4420 -0
- data/sorbet/rbi/gems/spring@4.0.0.rbi +104 -104
- data/sorbet/rbi/gems/syntax_tree@3.3.0.rbi +1 -1
- data/sorbet/rbi/gems/{tapioca@0.9.2.rbi → tapioca@0.13.3.rbi} +1596 -1253
- data/sorbet/rbi/gems/{thor@1.2.1.rbi → thor@1.3.1.rbi} +1047 -652
- data/sorbet/rbi/gems/tzinfo@2.0.5.rbi +531 -513
- data/sorbet/rbi/gems/unicode-display_width@2.2.0.rbi +13 -13
- data/sorbet/rbi/gems/{yard-sorbet@0.6.1.rbi → yard-sorbet@0.8.1.rbi} +132 -92
- data/sorbet/rbi/gems/{yard@0.9.28.rbi → yard@0.9.36.rbi} +3158 -3067
- data/sorbet/rbi/gems/zeitwerk@2.6.4.rbi +149 -145
- metadata +22 -94
- data/.github/ISSUE_TEMPLATE/bug_report.md +0 -27
- data/.github/pull_request_template.md +0 -28
- data/.github/workflows/ci.yml +0 -93
- data/.github/workflows/cla.yml +0 -22
- data/.gitignore +0 -13
- data/.rubocop.yml +0 -75
- data/.ruby-version +0 -1
- data/CODEOWNERS +0 -1
- data/CODE_OF_CONDUCT.md +0 -76
- data/CONTRIBUTING.md +0 -17
- data/Gemfile +0 -27
- data/Gemfile.lock +0 -206
- data/RESOLVING_VIOLATIONS.md +0 -76
- data/Rakefile +0 -22
- data/TROUBLESHOOT.md +0 -44
- data/UPGRADING.md +0 -66
- data/USAGE.md +0 -364
- data/bin/console +0 -15
- data/bin/m +0 -29
- data/bin/rake +0 -29
- data/bin/rubocop +0 -29
- data/bin/setup +0 -8
- data/bin/srb +0 -29
- data/bin/tapioca +0 -29
- data/dev.yml +0 -32
- data/docs/cohesion.png +0 -0
- data/gemfiles/Gemfile-rails-6-0 +0 -22
- data/gemfiles/Gemfile-rails-6-1 +0 -22
- data/packwerk.gemspec +0 -59
- data/shipit.rubygems.yml +0 -5
- data/sorbet/rbi/gems/actioncable@7.0.3.1.rbi +0 -2754
- data/sorbet/rbi/gems/actionmailbox@7.0.3.1.rbi +0 -1496
- data/sorbet/rbi/gems/actionmailer@7.0.3.1.rbi +0 -2362
- data/sorbet/rbi/gems/actiontext@7.0.3.1.rbi +0 -1569
- data/sorbet/rbi/gems/activejob@7.0.3.1.rbi +0 -2553
- data/sorbet/rbi/gems/activemodel@7.0.3.1.rbi +0 -5999
- data/sorbet/rbi/gems/activerecord@7.0.3.1.rbi +0 -37832
- data/sorbet/rbi/gems/activestorage@7.0.3.1.rbi +0 -2321
- data/sorbet/rbi/gems/better_html@1.0.16.rbi +0 -317
- data/sorbet/rbi/gems/coderay@1.1.3.rbi +0 -8
- data/sorbet/rbi/gems/diff-lcs@1.5.0.rbi +0 -1079
- data/sorbet/rbi/gems/digest@3.1.0.rbi +0 -189
- data/sorbet/rbi/gems/globalid@1.0.0.rbi +0 -572
- data/sorbet/rbi/gems/mail@2.7.1.rbi +0 -2490
- data/sorbet/rbi/gems/marcel@1.0.2.rbi +0 -220
- data/sorbet/rbi/gems/method_source@1.0.0.rbi +0 -76
- data/sorbet/rbi/gems/mini_mime@1.1.2.rbi +0 -170
- data/sorbet/rbi/gems/net-imap@0.2.3.rbi +0 -2147
- data/sorbet/rbi/gems/net-pop@0.1.1.rbi +0 -926
- data/sorbet/rbi/gems/net-protocol@0.1.3.rbi +0 -11
- data/sorbet/rbi/gems/net-smtp@0.3.1.rbi +0 -1108
- data/sorbet/rbi/gems/nio4r@2.5.8.rbi +0 -292
- data/sorbet/rbi/gems/pry@0.14.1.rbi +0 -8
- data/sorbet/rbi/gems/rails@7.0.3.1.rbi +0 -8
- data/sorbet/rbi/gems/spoom@1.1.11.rbi +0 -2181
- data/sorbet/rbi/gems/strscan@3.0.4.rbi +0 -8
- data/sorbet/rbi/gems/timeout@0.3.0.rbi +0 -142
- data/sorbet/rbi/gems/unparser@0.6.5.rbi +0 -4529
- data/sorbet/rbi/gems/webrick@1.7.0.rbi +0 -2582
- data/sorbet/rbi/gems/websocket-driver@0.7.5.rbi +0 -993
- data/sorbet/rbi/gems/websocket-extensions@0.1.5.rbi +0 -71
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
# This is an autogenerated file for types exported from the `i18n` gem.
|
|
5
5
|
# Please instead update this file by running `bin/tapioca gem i18n`.
|
|
6
6
|
|
|
7
|
-
# source://i18n
|
|
7
|
+
# source://i18n//lib/i18n/gettext/po_parser.rb#15
|
|
8
8
|
module GetText; end
|
|
9
9
|
|
|
10
|
-
# source://i18n
|
|
10
|
+
# source://i18n//lib/i18n/gettext/po_parser.rb#17
|
|
11
11
|
class GetText::PoParser < ::Racc::Parser
|
|
12
|
-
# source://i18n
|
|
12
|
+
# source://i18n//lib/i18n/gettext/po_parser.rb#19
|
|
13
13
|
def _(x); end
|
|
14
14
|
|
|
15
15
|
def _reduce_10(val, _values, result); end
|
|
@@ -21,7 +21,7 @@ class GetText::PoParser < ::Racc::Parser
|
|
|
21
21
|
def _reduce_8(val, _values, result); end
|
|
22
22
|
def _reduce_9(val, _values, result); end
|
|
23
23
|
|
|
24
|
-
# source://i18n
|
|
24
|
+
# source://i18n//lib/i18n/gettext/po_parser.rb#323
|
|
25
25
|
def _reduce_none(val, _values, result); end
|
|
26
26
|
|
|
27
27
|
def next_token; end
|
|
@@ -31,49 +31,49 @@ class GetText::PoParser < ::Racc::Parser
|
|
|
31
31
|
def unescape(orig); end
|
|
32
32
|
end
|
|
33
33
|
|
|
34
|
-
# source://i18n
|
|
34
|
+
# source://i18n//lib/i18n/gettext/po_parser.rb#184
|
|
35
35
|
GetText::PoParser::Racc_arg = T.let(T.unsafe(nil), Array)
|
|
36
36
|
|
|
37
|
-
# source://i18n
|
|
37
|
+
# source://i18n//lib/i18n/gettext/po_parser.rb#221
|
|
38
38
|
GetText::PoParser::Racc_debug_parser = T.let(T.unsafe(nil), TrueClass)
|
|
39
39
|
|
|
40
|
-
# source://i18n
|
|
40
|
+
# source://i18n//lib/i18n/gettext/po_parser.rb#200
|
|
41
41
|
GetText::PoParser::Racc_token_to_s_table = T.let(T.unsafe(nil), Array)
|
|
42
42
|
|
|
43
|
-
#
|
|
44
|
-
#
|
|
43
|
+
# Simple Locale tag implementation that computes subtags by simply splitting
|
|
44
|
+
# the locale tag at '-' occurrences.
|
|
45
45
|
#
|
|
46
|
-
# source://i18n
|
|
46
|
+
# source://i18n//lib/i18n/version.rb#3
|
|
47
47
|
module I18n
|
|
48
48
|
extend ::I18n::Base
|
|
49
49
|
|
|
50
50
|
class << self
|
|
51
|
-
# source://i18n
|
|
51
|
+
# source://i18n//lib/i18n/backend/cache.rb#64
|
|
52
52
|
def cache_key_digest; end
|
|
53
53
|
|
|
54
|
-
# source://i18n
|
|
54
|
+
# source://i18n//lib/i18n/backend/cache.rb#68
|
|
55
55
|
def cache_key_digest=(key_digest); end
|
|
56
56
|
|
|
57
|
-
# source://i18n
|
|
57
|
+
# source://i18n//lib/i18n/backend/cache.rb#56
|
|
58
58
|
def cache_namespace; end
|
|
59
59
|
|
|
60
|
-
# source://i18n
|
|
60
|
+
# source://i18n//lib/i18n/backend/cache.rb#60
|
|
61
61
|
def cache_namespace=(namespace); end
|
|
62
62
|
|
|
63
|
-
# source://i18n
|
|
63
|
+
# source://i18n//lib/i18n/backend/cache.rb#48
|
|
64
64
|
def cache_store; end
|
|
65
65
|
|
|
66
|
-
# source://i18n
|
|
66
|
+
# source://i18n//lib/i18n/backend/cache.rb#52
|
|
67
67
|
def cache_store=(store); end
|
|
68
68
|
|
|
69
69
|
# Returns the current fallbacks implementation. Defaults to +I18n::Locale::Fallbacks+.
|
|
70
70
|
#
|
|
71
|
-
# source://i18n
|
|
71
|
+
# source://i18n//lib/i18n/backend/fallbacks.rb#17
|
|
72
72
|
def fallbacks; end
|
|
73
73
|
|
|
74
74
|
# Sets the current fallbacks implementation. Use this to set a different fallbacks implementation.
|
|
75
75
|
#
|
|
76
|
-
# source://i18n
|
|
76
|
+
# source://i18n//lib/i18n/backend/fallbacks.rb#23
|
|
77
77
|
def fallbacks=(fallbacks); end
|
|
78
78
|
|
|
79
79
|
# Return String or raises MissingInterpolationArgument exception.
|
|
@@ -81,18 +81,18 @@ module I18n
|
|
|
81
81
|
#
|
|
82
82
|
# @raise [ReservedInterpolationKey]
|
|
83
83
|
#
|
|
84
|
-
# source://i18n
|
|
84
|
+
# source://i18n//lib/i18n/interpolate/ruby.rb#16
|
|
85
85
|
def interpolate(string, values); end
|
|
86
86
|
|
|
87
|
-
# source://i18n
|
|
87
|
+
# source://i18n//lib/i18n/interpolate/ruby.rb#22
|
|
88
88
|
def interpolate_hash(string, values); end
|
|
89
89
|
|
|
90
|
-
# source://i18n
|
|
90
|
+
# source://i18n//lib/i18n.rb#37
|
|
91
91
|
def new_double_nested_cache; end
|
|
92
92
|
|
|
93
93
|
# @return [Boolean]
|
|
94
94
|
#
|
|
95
|
-
# source://i18n
|
|
95
|
+
# source://i18n//lib/i18n/backend/cache.rb#72
|
|
96
96
|
def perform_caching?; end
|
|
97
97
|
|
|
98
98
|
# Marks a key as reserved. Reserved keys are used internally,
|
|
@@ -100,21 +100,21 @@ module I18n
|
|
|
100
100
|
# extra keys as I18n options, you should call I18n.reserve_key
|
|
101
101
|
# before any I18n.translate (etc) calls are made.
|
|
102
102
|
#
|
|
103
|
-
# source://i18n
|
|
103
|
+
# source://i18n//lib/i18n.rb#45
|
|
104
104
|
def reserve_key(key); end
|
|
105
105
|
|
|
106
|
-
# source://i18n
|
|
106
|
+
# source://i18n//lib/i18n.rb#50
|
|
107
107
|
def reserved_keys_pattern; end
|
|
108
108
|
end
|
|
109
109
|
end
|
|
110
110
|
|
|
111
|
-
# source://i18n
|
|
111
|
+
# source://i18n//lib/i18n/exceptions.rb#16
|
|
112
112
|
class I18n::ArgumentError < ::ArgumentError; end
|
|
113
113
|
|
|
114
|
-
# source://i18n
|
|
114
|
+
# source://i18n//lib/i18n/backend.rb#4
|
|
115
115
|
module I18n::Backend; end
|
|
116
116
|
|
|
117
|
-
# source://i18n
|
|
117
|
+
# source://i18n//lib/i18n/backend/base.rb#8
|
|
118
118
|
module I18n::Backend::Base
|
|
119
119
|
include ::I18n::Backend::Transliterator
|
|
120
120
|
|
|
@@ -123,22 +123,22 @@ module I18n::Backend::Base
|
|
|
123
123
|
#
|
|
124
124
|
# @raise [NotImplementedError]
|
|
125
125
|
#
|
|
126
|
-
# source://i18n
|
|
126
|
+
# source://i18n//lib/i18n/backend/base.rb#94
|
|
127
127
|
def available_locales; end
|
|
128
128
|
|
|
129
|
-
# source://i18n
|
|
129
|
+
# source://i18n//lib/i18n/backend/base.rb#102
|
|
130
130
|
def eager_load!; end
|
|
131
131
|
|
|
132
132
|
# @return [Boolean]
|
|
133
133
|
#
|
|
134
|
-
# source://i18n
|
|
134
|
+
# source://i18n//lib/i18n/backend/base.rb#68
|
|
135
135
|
def exists?(locale, key, options = T.unsafe(nil)); end
|
|
136
136
|
|
|
137
137
|
# Accepts a list of paths to translation files. Loads translations from
|
|
138
138
|
# plain Ruby (*.rb), YAML files (*.yml), or JSON files (*.json). See #load_rb, #load_yml, and #load_json
|
|
139
139
|
# for details.
|
|
140
140
|
#
|
|
141
|
-
# source://i18n
|
|
141
|
+
# source://i18n//lib/i18n/backend/base.rb#14
|
|
142
142
|
def load_translations(*filenames); end
|
|
143
143
|
|
|
144
144
|
# Acts the same as +strftime+, but uses a localized version of the
|
|
@@ -147,10 +147,10 @@ module I18n::Backend::Base
|
|
|
147
147
|
#
|
|
148
148
|
# @raise [ArgumentError]
|
|
149
149
|
#
|
|
150
|
-
# source://i18n
|
|
150
|
+
# source://i18n//lib/i18n/backend/base.rb#75
|
|
151
151
|
def localize(locale, object, format = T.unsafe(nil), options = T.unsafe(nil)); end
|
|
152
152
|
|
|
153
|
-
# source://i18n
|
|
153
|
+
# source://i18n//lib/i18n/backend/base.rb#98
|
|
154
154
|
def reload!; end
|
|
155
155
|
|
|
156
156
|
# This method receives a locale, a data hash and options for storing translations.
|
|
@@ -158,12 +158,12 @@ module I18n::Backend::Base
|
|
|
158
158
|
#
|
|
159
159
|
# @raise [NotImplementedError]
|
|
160
160
|
#
|
|
161
|
-
# source://i18n
|
|
161
|
+
# source://i18n//lib/i18n/backend/base.rb#24
|
|
162
162
|
def store_translations(locale, data, options = T.unsafe(nil)); end
|
|
163
163
|
|
|
164
164
|
# @raise [I18n::ArgumentError]
|
|
165
165
|
#
|
|
166
|
-
# source://i18n
|
|
166
|
+
# source://i18n//lib/i18n/backend/base.rb#28
|
|
167
167
|
def translate(locale, key, options = T.unsafe(nil)); end
|
|
168
168
|
|
|
169
169
|
protected
|
|
@@ -174,7 +174,7 @@ module I18n::Backend::Base
|
|
|
174
174
|
# ann: 'good', john: 'big'
|
|
175
175
|
# #=> { people: { ann: "Ann is good", john: "John is big" } }
|
|
176
176
|
#
|
|
177
|
-
# source://i18n
|
|
177
|
+
# source://i18n//lib/i18n/backend/base.rb#202
|
|
178
178
|
def deep_interpolate(locale, data, values = T.unsafe(nil)); end
|
|
179
179
|
|
|
180
180
|
# Evaluates defaults.
|
|
@@ -182,12 +182,12 @@ module I18n::Backend::Base
|
|
|
182
182
|
# first translation that can be resolved. Otherwise it tries to resolve
|
|
183
183
|
# the translation directly.
|
|
184
184
|
#
|
|
185
|
-
# source://i18n
|
|
185
|
+
# source://i18n//lib/i18n/backend/base.rb#125
|
|
186
186
|
def default(locale, object, subject, options = T.unsafe(nil)); end
|
|
187
187
|
|
|
188
188
|
# @return [Boolean]
|
|
189
189
|
#
|
|
190
|
-
# source://i18n
|
|
190
|
+
# source://i18n//lib/i18n/backend/base.rb#108
|
|
191
191
|
def eager_loaded?; end
|
|
192
192
|
|
|
193
193
|
# Interpolates values into a given subject.
|
|
@@ -201,7 +201,7 @@ module I18n::Backend::Base
|
|
|
201
201
|
# method interpolates ["yes, %{user}", ["maybe no, %{user}, "no, %{user}"]], :user => "bartuz"
|
|
202
202
|
# # => "["yes, bartuz",["maybe no, bartuz", "no, bartuz"]]"
|
|
203
203
|
#
|
|
204
|
-
# source://i18n
|
|
204
|
+
# source://i18n//lib/i18n/backend/base.rb#186
|
|
205
205
|
def interpolate(locale, subject, values = T.unsafe(nil)); end
|
|
206
206
|
|
|
207
207
|
# Loads a single translations file by delegating to #load_rb or
|
|
@@ -211,41 +211,41 @@ module I18n::Backend::Base
|
|
|
211
211
|
#
|
|
212
212
|
# @raise [UnknownFileType]
|
|
213
213
|
#
|
|
214
|
-
# source://i18n
|
|
214
|
+
# source://i18n//lib/i18n/backend/base.rb#225
|
|
215
215
|
def load_file(filename); end
|
|
216
216
|
|
|
217
217
|
# Loads a JSON translations file. The data must have locales as
|
|
218
218
|
# toplevel keys.
|
|
219
219
|
#
|
|
220
|
-
# source://i18n
|
|
220
|
+
# source://i18n//lib/i18n/backend/base.rb#261
|
|
221
221
|
def load_json(filename); end
|
|
222
222
|
|
|
223
223
|
# Loads a plain Ruby translations file. eval'ing the file must yield
|
|
224
224
|
# a Hash containing translation data with locales as toplevel keys.
|
|
225
225
|
#
|
|
226
|
-
# source://i18n
|
|
226
|
+
# source://i18n//lib/i18n/backend/base.rb#239
|
|
227
227
|
def load_rb(filename); end
|
|
228
228
|
|
|
229
229
|
# Loads a YAML translations file. The data must have locales as
|
|
230
230
|
# toplevel keys.
|
|
231
231
|
#
|
|
232
|
-
# source://i18n
|
|
232
|
+
# source://i18n//lib/i18n/backend/base.rb#246
|
|
233
233
|
def load_yaml(filename); end
|
|
234
234
|
|
|
235
235
|
# Loads a YAML translations file. The data must have locales as
|
|
236
236
|
# toplevel keys.
|
|
237
237
|
#
|
|
238
|
-
# source://i18n
|
|
238
|
+
# source://i18n//lib/i18n/backend/base.rb#246
|
|
239
239
|
def load_yml(filename); end
|
|
240
240
|
|
|
241
241
|
# The method which actually looks up for the translation in the store.
|
|
242
242
|
#
|
|
243
243
|
# @raise [NotImplementedError]
|
|
244
244
|
#
|
|
245
|
-
# source://i18n
|
|
245
|
+
# source://i18n//lib/i18n/backend/base.rb#113
|
|
246
246
|
def lookup(locale, key, scope = T.unsafe(nil), options = T.unsafe(nil)); end
|
|
247
247
|
|
|
248
|
-
# source://i18n
|
|
248
|
+
# source://i18n//lib/i18n/backend/base.rb#293
|
|
249
249
|
def pluralization_key(entry, count); end
|
|
250
250
|
|
|
251
251
|
# Picks a translation from a pluralized mnemonic subkey according to English
|
|
@@ -259,7 +259,7 @@ module I18n::Backend::Base
|
|
|
259
259
|
#
|
|
260
260
|
# @raise [InvalidPluralizationData]
|
|
261
261
|
#
|
|
262
|
-
# source://i18n
|
|
262
|
+
# source://i18n//lib/i18n/backend/base.rb#167
|
|
263
263
|
def pluralize(locale, entry, count); end
|
|
264
264
|
|
|
265
265
|
# Resolves a translation.
|
|
@@ -267,7 +267,7 @@ module I18n::Backend::Base
|
|
|
267
267
|
# given options. If it is a Proc then it will be evaluated. All other
|
|
268
268
|
# subjects will be returned directly.
|
|
269
269
|
#
|
|
270
|
-
# source://i18n
|
|
270
|
+
# source://i18n//lib/i18n/backend/base.rb#142
|
|
271
271
|
def resolve(locale, object, subject, options = T.unsafe(nil)); end
|
|
272
272
|
|
|
273
273
|
# Resolves a translation.
|
|
@@ -275,56 +275,56 @@ module I18n::Backend::Base
|
|
|
275
275
|
# given options. If it is a Proc then it will be evaluated. All other
|
|
276
276
|
# subjects will be returned directly.
|
|
277
277
|
#
|
|
278
|
-
# source://i18n
|
|
278
|
+
# source://i18n//lib/i18n/backend/base.rb#142
|
|
279
279
|
def resolve_entry(locale, object, subject, options = T.unsafe(nil)); end
|
|
280
280
|
|
|
281
281
|
# @return [Boolean]
|
|
282
282
|
#
|
|
283
|
-
# source://i18n
|
|
283
|
+
# source://i18n//lib/i18n/backend/base.rb#117
|
|
284
284
|
def subtrees?; end
|
|
285
285
|
|
|
286
|
-
# source://i18n
|
|
286
|
+
# source://i18n//lib/i18n/backend/base.rb#274
|
|
287
287
|
def translate_localization_format(locale, object, format, options); end
|
|
288
288
|
end
|
|
289
289
|
|
|
290
290
|
# TODO Should the cache be cleared if new translations are stored?
|
|
291
291
|
#
|
|
292
|
-
# source://i18n
|
|
292
|
+
# source://i18n//lib/i18n/backend/cache.rb#79
|
|
293
293
|
module I18n::Backend::Cache
|
|
294
|
-
# source://i18n
|
|
294
|
+
# source://i18n//lib/i18n/backend/cache.rb#80
|
|
295
295
|
def translate(locale, key, options = T.unsafe(nil)); end
|
|
296
296
|
|
|
297
297
|
protected
|
|
298
298
|
|
|
299
|
-
# source://i18n
|
|
299
|
+
# source://i18n//lib/i18n/backend/cache.rb#93
|
|
300
300
|
def _fetch(cache_key, &block); end
|
|
301
301
|
|
|
302
|
-
# source://i18n
|
|
302
|
+
# source://i18n//lib/i18n/backend/cache.rb#101
|
|
303
303
|
def cache_key(locale, key, options); end
|
|
304
304
|
|
|
305
|
-
# source://i18n
|
|
305
|
+
# source://i18n//lib/i18n/backend/cache.rb#86
|
|
306
306
|
def fetch(cache_key, &block); end
|
|
307
307
|
|
|
308
308
|
private
|
|
309
309
|
|
|
310
|
-
# source://i18n
|
|
310
|
+
# source://i18n//lib/i18n/backend/cache.rb#108
|
|
311
311
|
def digest_item(key); end
|
|
312
312
|
end
|
|
313
313
|
|
|
314
314
|
# Overwrites the Base load_file method to cache loaded file contents.
|
|
315
315
|
#
|
|
316
|
-
# source://i18n
|
|
316
|
+
# source://i18n//lib/i18n/backend/cache_file.rb#8
|
|
317
317
|
module I18n::Backend::CacheFile
|
|
318
318
|
# Optionally provide path_roots array to normalize filename paths,
|
|
319
319
|
# to make the cached i18n data portable across environments.
|
|
320
320
|
#
|
|
321
|
-
# source://i18n
|
|
321
|
+
# source://i18n//lib/i18n/backend/cache_file.rb#11
|
|
322
322
|
def path_roots; end
|
|
323
323
|
|
|
324
324
|
# Optionally provide path_roots array to normalize filename paths,
|
|
325
325
|
# to make the cached i18n data portable across environments.
|
|
326
326
|
#
|
|
327
|
-
# source://i18n
|
|
327
|
+
# source://i18n//lib/i18n/backend/cache_file.rb#11
|
|
328
328
|
def path_roots=(_arg0); end
|
|
329
329
|
|
|
330
330
|
protected
|
|
@@ -332,18 +332,18 @@ module I18n::Backend::CacheFile
|
|
|
332
332
|
# Track loaded translation files in the `i18n.load_file` scope,
|
|
333
333
|
# and skip loading the file if its contents are still up-to-date.
|
|
334
334
|
#
|
|
335
|
-
# source://i18n
|
|
335
|
+
# source://i18n//lib/i18n/backend/cache_file.rb#17
|
|
336
336
|
def load_file(filename); end
|
|
337
337
|
|
|
338
338
|
# Translate absolute filename to relative path for i18n key.
|
|
339
339
|
#
|
|
340
|
-
# source://i18n
|
|
340
|
+
# source://i18n//lib/i18n/backend/cache_file.rb#28
|
|
341
341
|
def normalized_path(file); end
|
|
342
342
|
end
|
|
343
343
|
|
|
344
|
-
# source://i18n
|
|
344
|
+
# source://i18n//lib/i18n/backend/cascade.rb#35
|
|
345
345
|
module I18n::Backend::Cascade
|
|
346
|
-
# source://i18n
|
|
346
|
+
# source://i18n//lib/i18n/backend/cascade.rb#36
|
|
347
347
|
def lookup(locale, key, scope = T.unsafe(nil), options = T.unsafe(nil)); end
|
|
348
348
|
end
|
|
349
349
|
|
|
@@ -362,72 +362,72 @@ end
|
|
|
362
362
|
# The implementation assumes that all backends added to the Chain implement
|
|
363
363
|
# a lookup method with the same API as Simple backend does.
|
|
364
364
|
#
|
|
365
|
-
# source://i18n
|
|
365
|
+
# source://i18n//lib/i18n/backend/chain.rb#19
|
|
366
366
|
class I18n::Backend::Chain
|
|
367
367
|
include ::I18n::Backend::Transliterator
|
|
368
368
|
include ::I18n::Backend::Base
|
|
369
369
|
include ::I18n::Backend::Chain::Implementation
|
|
370
370
|
end
|
|
371
371
|
|
|
372
|
-
# source://i18n
|
|
372
|
+
# source://i18n//lib/i18n/backend/chain.rb#20
|
|
373
373
|
module I18n::Backend::Chain::Implementation
|
|
374
374
|
include ::I18n::Backend::Transliterator
|
|
375
375
|
include ::I18n::Backend::Base
|
|
376
376
|
|
|
377
|
-
# source://i18n
|
|
377
|
+
# source://i18n//lib/i18n/backend/chain.rb#25
|
|
378
378
|
def initialize(*backends); end
|
|
379
379
|
|
|
380
|
-
# source://i18n
|
|
380
|
+
# source://i18n//lib/i18n/backend/chain.rb#50
|
|
381
381
|
def available_locales; end
|
|
382
382
|
|
|
383
383
|
# Returns the value of attribute backends.
|
|
384
384
|
#
|
|
385
|
-
# source://i18n
|
|
385
|
+
# source://i18n//lib/i18n/backend/chain.rb#23
|
|
386
386
|
def backends; end
|
|
387
387
|
|
|
388
388
|
# Sets the attribute backends
|
|
389
389
|
#
|
|
390
390
|
# @param value the value to set the attribute backends to.
|
|
391
391
|
#
|
|
392
|
-
# source://i18n
|
|
392
|
+
# source://i18n//lib/i18n/backend/chain.rb#23
|
|
393
393
|
def backends=(_arg0); end
|
|
394
394
|
|
|
395
|
-
# source://i18n
|
|
395
|
+
# source://i18n//lib/i18n/backend/chain.rb#42
|
|
396
396
|
def eager_load!; end
|
|
397
397
|
|
|
398
398
|
# @return [Boolean]
|
|
399
399
|
#
|
|
400
|
-
# source://i18n
|
|
400
|
+
# source://i18n//lib/i18n/backend/chain.rb#74
|
|
401
401
|
def exists?(locale, key, options = T.unsafe(nil)); end
|
|
402
402
|
|
|
403
403
|
# @return [Boolean]
|
|
404
404
|
#
|
|
405
|
-
# source://i18n
|
|
405
|
+
# source://i18n//lib/i18n/backend/chain.rb#29
|
|
406
406
|
def initialized?; end
|
|
407
407
|
|
|
408
|
-
# source://i18n
|
|
408
|
+
# source://i18n//lib/i18n/backend/chain.rb#80
|
|
409
409
|
def localize(locale, object, format = T.unsafe(nil), options = T.unsafe(nil)); end
|
|
410
410
|
|
|
411
|
-
# source://i18n
|
|
411
|
+
# source://i18n//lib/i18n/backend/chain.rb#38
|
|
412
412
|
def reload!; end
|
|
413
413
|
|
|
414
|
-
# source://i18n
|
|
414
|
+
# source://i18n//lib/i18n/backend/chain.rb#46
|
|
415
415
|
def store_translations(locale, data, options = T.unsafe(nil)); end
|
|
416
416
|
|
|
417
|
-
# source://i18n
|
|
417
|
+
# source://i18n//lib/i18n/backend/chain.rb#54
|
|
418
418
|
def translate(locale, key, default_options = T.unsafe(nil)); end
|
|
419
419
|
|
|
420
420
|
protected
|
|
421
421
|
|
|
422
|
-
# source://i18n
|
|
422
|
+
# source://i18n//lib/i18n/backend/chain.rb#90
|
|
423
423
|
def init_translations; end
|
|
424
424
|
|
|
425
425
|
# @return [Boolean]
|
|
426
426
|
#
|
|
427
|
-
# source://i18n
|
|
427
|
+
# source://i18n//lib/i18n/backend/chain.rb#106
|
|
428
428
|
def namespace_lookup?(result, options); end
|
|
429
429
|
|
|
430
|
-
# source://i18n
|
|
430
|
+
# source://i18n//lib/i18n/backend/chain.rb#96
|
|
431
431
|
def translations; end
|
|
432
432
|
|
|
433
433
|
private
|
|
@@ -437,21 +437,21 @@ module I18n::Backend::Chain::Implementation
|
|
|
437
437
|
# it is wise to have our own copy. We underscore it
|
|
438
438
|
# to not pollute the namespace of the including class.
|
|
439
439
|
#
|
|
440
|
-
# source://i18n
|
|
440
|
+
# source://i18n//lib/i18n/backend/chain.rb#115
|
|
441
441
|
def _deep_merge(hash, other_hash); end
|
|
442
442
|
end
|
|
443
443
|
|
|
444
|
-
# source://i18n
|
|
444
|
+
# source://i18n//lib/i18n/backend/fallbacks.rb#30
|
|
445
445
|
module I18n::Backend::Fallbacks
|
|
446
446
|
# @return [Boolean]
|
|
447
447
|
#
|
|
448
|
-
# source://i18n
|
|
448
|
+
# source://i18n//lib/i18n/backend/fallbacks.rb#94
|
|
449
449
|
def exists?(locale, key, options = T.unsafe(nil)); end
|
|
450
450
|
|
|
451
|
-
# source://i18n
|
|
451
|
+
# source://i18n//lib/i18n/backend/fallbacks.rb#85
|
|
452
452
|
def extract_non_symbol_default!(options); end
|
|
453
453
|
|
|
454
|
-
# source://i18n
|
|
454
|
+
# source://i18n//lib/i18n/backend/fallbacks.rb#67
|
|
455
455
|
def resolve_entry(locale, object, subject, options = T.unsafe(nil)); end
|
|
456
456
|
|
|
457
457
|
# Overwrites the Base backend translate method so that it will try each
|
|
@@ -465,14 +465,14 @@ module I18n::Backend::Fallbacks
|
|
|
465
465
|
# it's a Symbol. When the default contains a String, Proc or Hash
|
|
466
466
|
# it is evaluated last after all the fallback locales have been tried.
|
|
467
467
|
#
|
|
468
|
-
# source://i18n
|
|
468
|
+
# source://i18n//lib/i18n/backend/fallbacks.rb#41
|
|
469
469
|
def translate(locale, key, options = T.unsafe(nil)); end
|
|
470
470
|
|
|
471
471
|
private
|
|
472
472
|
|
|
473
473
|
# Overwrite on_fallback to add specified logic when the fallback succeeds.
|
|
474
474
|
#
|
|
475
|
-
# source://i18n
|
|
475
|
+
# source://i18n//lib/i18n/backend/fallbacks.rb#110
|
|
476
476
|
def on_fallback(_original_locale, _fallback_locale, _key, _options); end
|
|
477
477
|
end
|
|
478
478
|
|
|
@@ -485,14 +485,14 @@ end
|
|
|
485
485
|
# You can check both backends above for some examples.
|
|
486
486
|
# This module also keeps all links in a hash so they can be properly resolved when flattened.
|
|
487
487
|
#
|
|
488
|
-
# source://i18n
|
|
488
|
+
# source://i18n//lib/i18n/backend/flatten.rb#13
|
|
489
489
|
module I18n::Backend::Flatten
|
|
490
490
|
# Flatten keys for nested Hashes by chaining up keys:
|
|
491
491
|
#
|
|
492
492
|
# >> { "a" => { "b" => { "c" => "d", "e" => "f" }, "g" => "h" }, "i" => "j"}.wind
|
|
493
493
|
# => { "a.b.c" => "d", "a.b.e" => "f", "a.g" => "h", "i" => "j" }
|
|
494
494
|
#
|
|
495
|
-
# source://i18n
|
|
495
|
+
# source://i18n//lib/i18n/backend/flatten.rb#59
|
|
496
496
|
def flatten_keys(hash, escape, prev_key = T.unsafe(nil), &block); end
|
|
497
497
|
|
|
498
498
|
# Receives a hash of translations (where the key is a locale and
|
|
@@ -502,53 +502,53 @@ module I18n::Backend::Flatten
|
|
|
502
502
|
# Nested hashes are included in the flattened hash just if subtree
|
|
503
503
|
# is true and Symbols are automatically stored as links.
|
|
504
504
|
#
|
|
505
|
-
# source://i18n
|
|
505
|
+
# source://i18n//lib/i18n/backend/flatten.rb#74
|
|
506
506
|
def flatten_translations(locale, data, escape, subtree); end
|
|
507
507
|
|
|
508
508
|
# Store flattened links.
|
|
509
509
|
#
|
|
510
|
-
# source://i18n
|
|
510
|
+
# source://i18n//lib/i18n/backend/flatten.rb#50
|
|
511
511
|
def links; end
|
|
512
512
|
|
|
513
513
|
# Shortcut to I18n::Backend::Flatten.normalize_flat_keys
|
|
514
514
|
# and then resolve_links.
|
|
515
515
|
#
|
|
516
|
-
# source://i18n
|
|
516
|
+
# source://i18n//lib/i18n/backend/flatten.rb#44
|
|
517
517
|
def normalize_flat_keys(locale, key, scope, separator); end
|
|
518
518
|
|
|
519
519
|
protected
|
|
520
520
|
|
|
521
|
-
# source://i18n
|
|
521
|
+
# source://i18n//lib/i18n/backend/flatten.rb#112
|
|
522
522
|
def escape_default_separator(key); end
|
|
523
523
|
|
|
524
|
-
# source://i18n
|
|
524
|
+
# source://i18n//lib/i18n/backend/flatten.rb#106
|
|
525
525
|
def find_link(locale, key); end
|
|
526
526
|
|
|
527
|
-
# source://i18n
|
|
527
|
+
# source://i18n//lib/i18n/backend/flatten.rb#93
|
|
528
528
|
def resolve_link(locale, key); end
|
|
529
529
|
|
|
530
|
-
# source://i18n
|
|
530
|
+
# source://i18n//lib/i18n/backend/flatten.rb#89
|
|
531
531
|
def store_link(locale, key, link); end
|
|
532
532
|
|
|
533
533
|
class << self
|
|
534
534
|
# Receives a string and escape the default separator.
|
|
535
535
|
#
|
|
536
|
-
# source://i18n
|
|
536
|
+
# source://i18n//lib/i18n/backend/flatten.rb#38
|
|
537
537
|
def escape_default_separator(key); end
|
|
538
538
|
|
|
539
539
|
# normalize_keys the flatten way. This method is significantly faster
|
|
540
540
|
# and creates way less objects than the one at I18n.normalize_keys.
|
|
541
541
|
# It also handles escaping the translation keys.
|
|
542
542
|
#
|
|
543
|
-
# source://i18n
|
|
543
|
+
# source://i18n//lib/i18n/backend/flatten.rb#20
|
|
544
544
|
def normalize_flat_keys(locale, key, scope, separator); end
|
|
545
545
|
end
|
|
546
546
|
end
|
|
547
547
|
|
|
548
|
-
# source://i18n
|
|
548
|
+
# source://i18n//lib/i18n/backend/flatten.rb#15
|
|
549
549
|
I18n::Backend::Flatten::FLATTEN_SEPARATOR = T.let(T.unsafe(nil), String)
|
|
550
550
|
|
|
551
|
-
# source://i18n
|
|
551
|
+
# source://i18n//lib/i18n/backend/flatten.rb#14
|
|
552
552
|
I18n::Backend::Flatten::SEPARATOR_ESCAPE_CHAR = T.let(T.unsafe(nil), String)
|
|
553
553
|
|
|
554
554
|
# Experimental support for using Gettext po files to store translations.
|
|
@@ -576,100 +576,100 @@ I18n::Backend::Flatten::SEPARATOR_ESCAPE_CHAR = T.let(T.unsafe(nil), String)
|
|
|
576
576
|
#
|
|
577
577
|
# Without it strings containing periods (".") will not be translated.
|
|
578
578
|
#
|
|
579
|
-
# source://i18n
|
|
579
|
+
# source://i18n//lib/i18n/backend/gettext.rb#33
|
|
580
580
|
module I18n::Backend::Gettext
|
|
581
581
|
protected
|
|
582
582
|
|
|
583
|
-
# source://i18n
|
|
583
|
+
# source://i18n//lib/i18n/backend/gettext.rb#41
|
|
584
584
|
def load_po(filename); end
|
|
585
585
|
|
|
586
|
-
# source://i18n
|
|
586
|
+
# source://i18n//lib/i18n/backend/gettext.rb#51
|
|
587
587
|
def normalize(locale, data); end
|
|
588
588
|
|
|
589
|
-
# source://i18n
|
|
589
|
+
# source://i18n//lib/i18n/backend/gettext.rb#68
|
|
590
590
|
def normalize_pluralization(locale, key, value); end
|
|
591
591
|
|
|
592
|
-
# source://i18n
|
|
592
|
+
# source://i18n//lib/i18n/backend/gettext.rb#47
|
|
593
593
|
def parse(filename); end
|
|
594
594
|
end
|
|
595
595
|
|
|
596
|
-
# source://i18n
|
|
596
|
+
# source://i18n//lib/i18n/backend/gettext.rb#34
|
|
597
597
|
class I18n::Backend::Gettext::PoData < ::Hash
|
|
598
|
-
# source://i18n
|
|
598
|
+
# source://i18n//lib/i18n/backend/gettext.rb#35
|
|
599
599
|
def set_comment(msgid_or_sym, comment); end
|
|
600
600
|
end
|
|
601
601
|
|
|
602
|
-
# source://i18n
|
|
602
|
+
# source://i18n//lib/i18n/backend/interpolation_compiler.rb#20
|
|
603
603
|
module I18n::Backend::InterpolationCompiler
|
|
604
|
-
# source://i18n
|
|
604
|
+
# source://i18n//lib/i18n/backend/interpolation_compiler.rb#99
|
|
605
605
|
def interpolate(locale, string, values); end
|
|
606
606
|
|
|
607
|
-
# source://i18n
|
|
607
|
+
# source://i18n//lib/i18n/backend/interpolation_compiler.rb#109
|
|
608
608
|
def store_translations(locale, data, options = T.unsafe(nil)); end
|
|
609
609
|
|
|
610
610
|
protected
|
|
611
611
|
|
|
612
|
-
# source://i18n
|
|
612
|
+
# source://i18n//lib/i18n/backend/interpolation_compiler.rb#115
|
|
613
613
|
def compile_all_strings_in(data); end
|
|
614
614
|
end
|
|
615
615
|
|
|
616
|
-
# source://i18n
|
|
616
|
+
# source://i18n//lib/i18n/backend/interpolation_compiler.rb#21
|
|
617
617
|
module I18n::Backend::InterpolationCompiler::Compiler
|
|
618
618
|
extend ::I18n::Backend::InterpolationCompiler::Compiler
|
|
619
619
|
|
|
620
|
-
# source://i18n
|
|
620
|
+
# source://i18n//lib/i18n/backend/interpolation_compiler.rb#27
|
|
621
621
|
def compile_if_an_interpolation(string); end
|
|
622
622
|
|
|
623
623
|
# @return [Boolean]
|
|
624
624
|
#
|
|
625
|
-
# source://i18n
|
|
625
|
+
# source://i18n//lib/i18n/backend/interpolation_compiler.rb#39
|
|
626
626
|
def interpolated_str?(str); end
|
|
627
627
|
|
|
628
628
|
protected
|
|
629
629
|
|
|
630
|
-
# source://i18n
|
|
630
|
+
# source://i18n//lib/i18n/backend/interpolation_compiler.rb#60
|
|
631
631
|
def compile_interpolation_token(key); end
|
|
632
632
|
|
|
633
|
-
# source://i18n
|
|
633
|
+
# source://i18n//lib/i18n/backend/interpolation_compiler.rb#49
|
|
634
634
|
def compiled_interpolation_body(str); end
|
|
635
635
|
|
|
636
|
-
# source://i18n
|
|
636
|
+
# source://i18n//lib/i18n/backend/interpolation_compiler.rb#73
|
|
637
637
|
def direct_key(key); end
|
|
638
638
|
|
|
639
|
-
# source://i18n
|
|
639
|
+
# source://i18n//lib/i18n/backend/interpolation_compiler.rb#93
|
|
640
640
|
def escape_key_sym(key); end
|
|
641
641
|
|
|
642
|
-
# source://i18n
|
|
642
|
+
# source://i18n//lib/i18n/backend/interpolation_compiler.rb#89
|
|
643
643
|
def escape_plain_str(str); end
|
|
644
644
|
|
|
645
|
-
# source://i18n
|
|
645
|
+
# source://i18n//lib/i18n/backend/interpolation_compiler.rb#55
|
|
646
646
|
def handle_interpolation_token(interpolation, matchdata); end
|
|
647
647
|
|
|
648
|
-
# source://i18n
|
|
648
|
+
# source://i18n//lib/i18n/backend/interpolation_compiler.rb#69
|
|
649
649
|
def interpolate_key(key); end
|
|
650
650
|
|
|
651
|
-
# source://i18n
|
|
651
|
+
# source://i18n//lib/i18n/backend/interpolation_compiler.rb#64
|
|
652
652
|
def interpolate_or_raise_missing(key); end
|
|
653
653
|
|
|
654
|
-
# source://i18n
|
|
654
|
+
# source://i18n//lib/i18n/backend/interpolation_compiler.rb#81
|
|
655
655
|
def missing_key(key); end
|
|
656
656
|
|
|
657
|
-
# source://i18n
|
|
657
|
+
# source://i18n//lib/i18n/backend/interpolation_compiler.rb#77
|
|
658
658
|
def nil_key(key); end
|
|
659
659
|
|
|
660
|
-
# source://i18n
|
|
660
|
+
# source://i18n//lib/i18n/backend/interpolation_compiler.rb#85
|
|
661
661
|
def reserved_key(key); end
|
|
662
662
|
|
|
663
663
|
# tokenize("foo %{bar} baz %%{buz}") # => ["foo ", "%{bar}", " baz ", "%%{buz}"]
|
|
664
664
|
#
|
|
665
|
-
# source://i18n
|
|
665
|
+
# source://i18n//lib/i18n/backend/interpolation_compiler.rb#45
|
|
666
666
|
def tokenize(str); end
|
|
667
667
|
end
|
|
668
668
|
|
|
669
|
-
# source://i18n
|
|
669
|
+
# source://i18n//lib/i18n/backend/interpolation_compiler.rb#25
|
|
670
670
|
I18n::Backend::InterpolationCompiler::Compiler::INTERPOLATION_SYNTAX_PATTERN = T.let(T.unsafe(nil), Regexp)
|
|
671
671
|
|
|
672
|
-
# source://i18n
|
|
672
|
+
# source://i18n//lib/i18n/backend/interpolation_compiler.rb#24
|
|
673
673
|
I18n::Backend::InterpolationCompiler::Compiler::TOKENIZER = T.let(T.unsafe(nil), Regexp)
|
|
674
674
|
|
|
675
675
|
# This is a basic backend for key value stores. It receives on
|
|
@@ -717,7 +717,7 @@ I18n::Backend::InterpolationCompiler::Compiler::TOKENIZER = T.let(T.unsafe(nil),
|
|
|
717
717
|
#
|
|
718
718
|
# This is useful if you are using a KeyValue backend chained to a Simple backend.
|
|
719
719
|
#
|
|
720
|
-
# source://i18n
|
|
720
|
+
# source://i18n//lib/i18n/backend/key_value.rb#69
|
|
721
721
|
class I18n::Backend::KeyValue
|
|
722
722
|
include ::I18n::Backend::Flatten
|
|
723
723
|
include ::I18n::Backend::Transliterator
|
|
@@ -725,131 +725,131 @@ class I18n::Backend::KeyValue
|
|
|
725
725
|
include ::I18n::Backend::KeyValue::Implementation
|
|
726
726
|
end
|
|
727
727
|
|
|
728
|
-
# source://i18n
|
|
728
|
+
# source://i18n//lib/i18n/backend/key_value.rb#70
|
|
729
729
|
module I18n::Backend::KeyValue::Implementation
|
|
730
730
|
include ::I18n::Backend::Flatten
|
|
731
731
|
include ::I18n::Backend::Transliterator
|
|
732
732
|
include ::I18n::Backend::Base
|
|
733
733
|
|
|
734
|
-
# source://i18n
|
|
734
|
+
# source://i18n//lib/i18n/backend/key_value.rb#75
|
|
735
735
|
def initialize(store, subtrees = T.unsafe(nil)); end
|
|
736
736
|
|
|
737
|
-
# source://i18n
|
|
737
|
+
# source://i18n//lib/i18n/backend/key_value.rb#102
|
|
738
738
|
def available_locales; end
|
|
739
739
|
|
|
740
740
|
# @return [Boolean]
|
|
741
741
|
#
|
|
742
|
-
# source://i18n
|
|
742
|
+
# source://i18n//lib/i18n/backend/key_value.rb#79
|
|
743
743
|
def initialized?; end
|
|
744
744
|
|
|
745
745
|
# Returns the value of attribute store.
|
|
746
746
|
#
|
|
747
|
-
# source://i18n
|
|
747
|
+
# source://i18n//lib/i18n/backend/key_value.rb#71
|
|
748
748
|
def store; end
|
|
749
749
|
|
|
750
750
|
# Sets the attribute store
|
|
751
751
|
#
|
|
752
752
|
# @param value the value to set the attribute store to.
|
|
753
753
|
#
|
|
754
|
-
# source://i18n
|
|
754
|
+
# source://i18n//lib/i18n/backend/key_value.rb#71
|
|
755
755
|
def store=(_arg0); end
|
|
756
756
|
|
|
757
|
-
# source://i18n
|
|
757
|
+
# source://i18n//lib/i18n/backend/key_value.rb#83
|
|
758
758
|
def store_translations(locale, data, options = T.unsafe(nil)); end
|
|
759
759
|
|
|
760
760
|
protected
|
|
761
761
|
|
|
762
|
-
# source://i18n
|
|
762
|
+
# source://i18n//lib/i18n/backend/key_value.rb#124
|
|
763
763
|
def init_translations; end
|
|
764
764
|
|
|
765
|
-
# source://i18n
|
|
765
|
+
# source://i18n//lib/i18n/backend/key_value.rb#136
|
|
766
766
|
def lookup(locale, key, scope = T.unsafe(nil), options = T.unsafe(nil)); end
|
|
767
767
|
|
|
768
|
-
# source://i18n
|
|
768
|
+
# source://i18n//lib/i18n/backend/key_value.rb#150
|
|
769
769
|
def pluralize(locale, entry, count); end
|
|
770
770
|
|
|
771
771
|
# @return [Boolean]
|
|
772
772
|
#
|
|
773
|
-
# source://i18n
|
|
773
|
+
# source://i18n//lib/i18n/backend/key_value.rb#132
|
|
774
774
|
def subtrees?; end
|
|
775
775
|
|
|
776
776
|
# Queries the translations from the key-value store and converts
|
|
777
777
|
# them into a hash such as the one returned from loading the
|
|
778
778
|
# haml files
|
|
779
779
|
#
|
|
780
|
-
# source://i18n
|
|
780
|
+
# source://i18n//lib/i18n/backend/key_value.rb#115
|
|
781
781
|
def translations; end
|
|
782
782
|
end
|
|
783
783
|
|
|
784
|
-
# source://i18n
|
|
784
|
+
# source://i18n//lib/i18n/backend/key_value.rb#161
|
|
785
785
|
class I18n::Backend::KeyValue::SubtreeProxy
|
|
786
786
|
# @return [SubtreeProxy] a new instance of SubtreeProxy
|
|
787
787
|
#
|
|
788
|
-
# source://i18n
|
|
788
|
+
# source://i18n//lib/i18n/backend/key_value.rb#162
|
|
789
789
|
def initialize(master_key, store); end
|
|
790
790
|
|
|
791
|
-
# source://i18n
|
|
791
|
+
# source://i18n//lib/i18n/backend/key_value.rb#172
|
|
792
792
|
def [](key); end
|
|
793
793
|
|
|
794
794
|
# @return [Boolean]
|
|
795
795
|
#
|
|
796
|
-
# source://i18n
|
|
796
|
+
# source://i18n//lib/i18n/backend/key_value.rb#168
|
|
797
797
|
def has_key?(key); end
|
|
798
798
|
|
|
799
|
-
# source://i18n
|
|
799
|
+
# source://i18n//lib/i18n/backend/key_value.rb#196
|
|
800
800
|
def inspect; end
|
|
801
801
|
|
|
802
802
|
# @return [Boolean]
|
|
803
803
|
#
|
|
804
|
-
# source://i18n
|
|
804
|
+
# source://i18n//lib/i18n/backend/key_value.rb#188
|
|
805
805
|
def instance_of?(klass); end
|
|
806
806
|
|
|
807
807
|
# @return [Boolean]
|
|
808
808
|
#
|
|
809
|
-
# source://i18n
|
|
809
|
+
# source://i18n//lib/i18n/backend/key_value.rb#183
|
|
810
810
|
def is_a?(klass); end
|
|
811
811
|
|
|
812
812
|
# @return [Boolean]
|
|
813
813
|
#
|
|
814
|
-
# source://i18n
|
|
814
|
+
# source://i18n//lib/i18n/backend/key_value.rb#183
|
|
815
815
|
def kind_of?(klass); end
|
|
816
816
|
|
|
817
817
|
# @return [Boolean]
|
|
818
818
|
#
|
|
819
|
-
# source://i18n
|
|
819
|
+
# source://i18n//lib/i18n/backend/key_value.rb#192
|
|
820
820
|
def nil?; end
|
|
821
821
|
end
|
|
822
822
|
|
|
823
|
-
# source://i18n
|
|
823
|
+
# source://i18n//lib/i18n/backend/lazy_loadable.rb#65
|
|
824
824
|
class I18n::Backend::LazyLoadable < ::I18n::Backend::Simple
|
|
825
825
|
# @return [LazyLoadable] a new instance of LazyLoadable
|
|
826
826
|
#
|
|
827
|
-
# source://i18n
|
|
827
|
+
# source://i18n//lib/i18n/backend/lazy_loadable.rb#66
|
|
828
828
|
def initialize(lazy_load: T.unsafe(nil)); end
|
|
829
829
|
|
|
830
830
|
# Parse the load path and extract all locales.
|
|
831
831
|
#
|
|
832
|
-
# source://i18n
|
|
832
|
+
# source://i18n//lib/i18n/backend/lazy_loadable.rb#99
|
|
833
833
|
def available_locales; end
|
|
834
834
|
|
|
835
835
|
# Eager loading is not supported in the lazy context.
|
|
836
836
|
#
|
|
837
|
-
# source://i18n
|
|
837
|
+
# source://i18n//lib/i18n/backend/lazy_loadable.rb#90
|
|
838
838
|
def eager_load!; end
|
|
839
839
|
|
|
840
840
|
# Returns whether the current locale is initialized.
|
|
841
841
|
#
|
|
842
842
|
# @return [Boolean]
|
|
843
843
|
#
|
|
844
|
-
# source://i18n
|
|
844
|
+
# source://i18n//lib/i18n/backend/lazy_loadable.rb#71
|
|
845
845
|
def initialized?; end
|
|
846
846
|
|
|
847
|
-
# source://i18n
|
|
847
|
+
# source://i18n//lib/i18n/backend/lazy_loadable.rb#107
|
|
848
848
|
def lookup(locale, key, scope = T.unsafe(nil), options = T.unsafe(nil)); end
|
|
849
849
|
|
|
850
850
|
# Clean up translations and uninitialize all locales.
|
|
851
851
|
#
|
|
852
|
-
# source://i18n
|
|
852
|
+
# source://i18n//lib/i18n/backend/lazy_loadable.rb#80
|
|
853
853
|
def reload!; end
|
|
854
854
|
|
|
855
855
|
protected
|
|
@@ -858,10 +858,10 @@ class I18n::Backend::LazyLoadable < ::I18n::Backend::Simple
|
|
|
858
858
|
#
|
|
859
859
|
# @raise [InvalidFilenames]
|
|
860
860
|
#
|
|
861
|
-
# source://i18n
|
|
861
|
+
# source://i18n//lib/i18n/backend/lazy_loadable.rb#121
|
|
862
862
|
def init_translations; end
|
|
863
863
|
|
|
864
|
-
# source://i18n
|
|
864
|
+
# source://i18n//lib/i18n/backend/lazy_loadable.rb#133
|
|
865
865
|
def initialized_locales; end
|
|
866
866
|
|
|
867
867
|
private
|
|
@@ -871,34 +871,34 @@ class I18n::Backend::LazyLoadable < ::I18n::Backend::Simple
|
|
|
871
871
|
#
|
|
872
872
|
# @raise [FilenameIncorrect]
|
|
873
873
|
#
|
|
874
|
-
# source://i18n
|
|
874
|
+
# source://i18n//lib/i18n/backend/lazy_loadable.rb#175
|
|
875
875
|
def assert_file_named_correctly!(file, translations); end
|
|
876
876
|
|
|
877
877
|
# Select all files from I18n load path that belong to current locale.
|
|
878
878
|
# These files must start with the locale identifier (ie. "en", "pt-BR"),
|
|
879
879
|
# followed by an "_" demarcation to separate proceeding text.
|
|
880
880
|
#
|
|
881
|
-
# source://i18n
|
|
881
|
+
# source://i18n//lib/i18n/backend/lazy_loadable.rb#167
|
|
882
882
|
def filenames_for_current_locale; end
|
|
883
883
|
|
|
884
884
|
# @return [Boolean]
|
|
885
885
|
#
|
|
886
|
-
# source://i18n
|
|
886
|
+
# source://i18n//lib/i18n/backend/lazy_loadable.rb#139
|
|
887
887
|
def lazy_load?; end
|
|
888
888
|
|
|
889
889
|
# Loads each file supplied and asserts that the file only loads
|
|
890
890
|
# translations as expected by the name. The method returns a list of
|
|
891
891
|
# errors corresponding to offending files.
|
|
892
892
|
#
|
|
893
|
-
# source://i18n
|
|
893
|
+
# source://i18n//lib/i18n/backend/lazy_loadable.rb#152
|
|
894
894
|
def load_translations_and_collect_file_errors(files); end
|
|
895
895
|
end
|
|
896
896
|
|
|
897
|
-
# source://i18n
|
|
897
|
+
# source://i18n//lib/i18n/backend/lazy_loadable.rb#143
|
|
898
898
|
class I18n::Backend::LazyLoadable::FilenameIncorrect < ::StandardError
|
|
899
899
|
# @return [FilenameIncorrect] a new instance of FilenameIncorrect
|
|
900
900
|
#
|
|
901
|
-
# source://i18n
|
|
901
|
+
# source://i18n//lib/i18n/backend/lazy_loadable.rb#144
|
|
902
902
|
def initialize(file, expected_locale, unexpected_locales); end
|
|
903
903
|
end
|
|
904
904
|
|
|
@@ -952,65 +952,65 @@ end
|
|
|
952
952
|
#
|
|
953
953
|
# I18n.backend = I18n::Backend::LazyLoadable.new(lazy_load: false) # default
|
|
954
954
|
#
|
|
955
|
-
# source://i18n
|
|
955
|
+
# source://i18n//lib/i18n/backend/lazy_loadable.rb#55
|
|
956
956
|
class I18n::Backend::LocaleExtractor
|
|
957
957
|
class << self
|
|
958
|
-
# source://i18n
|
|
958
|
+
# source://i18n//lib/i18n/backend/lazy_loadable.rb#57
|
|
959
959
|
def locale_from_path(path); end
|
|
960
960
|
end
|
|
961
961
|
end
|
|
962
962
|
|
|
963
|
-
# source://i18n
|
|
963
|
+
# source://i18n//lib/i18n/backend/memoize.rb#14
|
|
964
964
|
module I18n::Backend::Memoize
|
|
965
|
-
# source://i18n
|
|
965
|
+
# source://i18n//lib/i18n/backend/memoize.rb#15
|
|
966
966
|
def available_locales; end
|
|
967
967
|
|
|
968
|
-
# source://i18n
|
|
968
|
+
# source://i18n//lib/i18n/backend/memoize.rb#29
|
|
969
969
|
def eager_load!; end
|
|
970
970
|
|
|
971
|
-
# source://i18n
|
|
971
|
+
# source://i18n//lib/i18n/backend/memoize.rb#24
|
|
972
972
|
def reload!; end
|
|
973
973
|
|
|
974
|
-
# source://i18n
|
|
974
|
+
# source://i18n//lib/i18n/backend/memoize.rb#19
|
|
975
975
|
def store_translations(locale, data, options = T.unsafe(nil)); end
|
|
976
976
|
|
|
977
977
|
protected
|
|
978
978
|
|
|
979
|
-
# source://i18n
|
|
979
|
+
# source://i18n//lib/i18n/backend/memoize.rb#37
|
|
980
980
|
def lookup(locale, key, scope = T.unsafe(nil), options = T.unsafe(nil)); end
|
|
981
981
|
|
|
982
|
-
# source://i18n
|
|
982
|
+
# source://i18n//lib/i18n/backend/memoize.rb#44
|
|
983
983
|
def memoized_lookup; end
|
|
984
984
|
|
|
985
|
-
# source://i18n
|
|
985
|
+
# source://i18n//lib/i18n/backend/memoize.rb#48
|
|
986
986
|
def reset_memoizations!(locale = T.unsafe(nil)); end
|
|
987
987
|
end
|
|
988
988
|
|
|
989
|
-
# source://i18n
|
|
989
|
+
# source://i18n//lib/i18n/backend/metadata.rb#21
|
|
990
990
|
module I18n::Backend::Metadata
|
|
991
|
-
# source://i18n
|
|
991
|
+
# source://i18n//lib/i18n/backend/metadata.rb#52
|
|
992
992
|
def interpolate(locale, entry, values = T.unsafe(nil)); end
|
|
993
993
|
|
|
994
|
-
# source://i18n
|
|
994
|
+
# source://i18n//lib/i18n/backend/metadata.rb#57
|
|
995
995
|
def pluralize(locale, entry, count); end
|
|
996
996
|
|
|
997
|
-
# source://i18n
|
|
997
|
+
# source://i18n//lib/i18n/backend/metadata.rb#40
|
|
998
998
|
def translate(locale, key, options = T.unsafe(nil)); end
|
|
999
999
|
|
|
1000
1000
|
protected
|
|
1001
1001
|
|
|
1002
|
-
# source://i18n
|
|
1002
|
+
# source://i18n//lib/i18n/backend/metadata.rb#63
|
|
1003
1003
|
def with_metadata(metadata, &block); end
|
|
1004
1004
|
|
|
1005
1005
|
class << self
|
|
1006
1006
|
# @private
|
|
1007
1007
|
#
|
|
1008
|
-
# source://i18n
|
|
1008
|
+
# source://i18n//lib/i18n/backend/metadata.rb#23
|
|
1009
1009
|
def included(base); end
|
|
1010
1010
|
end
|
|
1011
1011
|
end
|
|
1012
1012
|
|
|
1013
|
-
# source://i18n
|
|
1013
|
+
# source://i18n//lib/i18n/backend/pluralization.rb#16
|
|
1014
1014
|
module I18n::Backend::Pluralization
|
|
1015
1015
|
# Overwrites the Base backend translate method so that it will check the
|
|
1016
1016
|
# translation meta data space (:i18n) for a locale specific pluralization
|
|
@@ -1027,15 +1027,15 @@ module I18n::Backend::Pluralization
|
|
|
1027
1027
|
# either pick a special :zero translation even for languages where the
|
|
1028
1028
|
# pluralizer does not return a :zero key.
|
|
1029
1029
|
#
|
|
1030
|
-
# source://i18n
|
|
1030
|
+
# source://i18n//lib/i18n/backend/pluralization.rb#31
|
|
1031
1031
|
def pluralize(locale, entry, count); end
|
|
1032
1032
|
|
|
1033
1033
|
protected
|
|
1034
1034
|
|
|
1035
|
-
# source://i18n
|
|
1035
|
+
# source://i18n//lib/i18n/backend/pluralization.rb#50
|
|
1036
1036
|
def pluralizer(locale); end
|
|
1037
1037
|
|
|
1038
|
-
# source://i18n
|
|
1038
|
+
# source://i18n//lib/i18n/backend/pluralization.rb#46
|
|
1039
1039
|
def pluralizers; end
|
|
1040
1040
|
end
|
|
1041
1041
|
|
|
@@ -1054,34 +1054,34 @@ end
|
|
|
1054
1054
|
#
|
|
1055
1055
|
# I18n::Backend::Simple.include(I18n::Backend::Pluralization)
|
|
1056
1056
|
#
|
|
1057
|
-
# source://i18n
|
|
1057
|
+
# source://i18n//lib/i18n/backend/simple.rb#21
|
|
1058
1058
|
class I18n::Backend::Simple
|
|
1059
1059
|
include ::I18n::Backend::Transliterator
|
|
1060
1060
|
include ::I18n::Backend::Base
|
|
1061
1061
|
include ::I18n::Backend::Simple::Implementation
|
|
1062
1062
|
end
|
|
1063
1063
|
|
|
1064
|
-
# source://i18n
|
|
1064
|
+
# source://i18n//lib/i18n/backend/simple.rb#22
|
|
1065
1065
|
module I18n::Backend::Simple::Implementation
|
|
1066
1066
|
include ::I18n::Backend::Transliterator
|
|
1067
1067
|
include ::I18n::Backend::Base
|
|
1068
1068
|
|
|
1069
1069
|
# Get available locales from the translations hash
|
|
1070
1070
|
#
|
|
1071
|
-
# source://i18n
|
|
1071
|
+
# source://i18n//lib/i18n/backend/simple.rb#46
|
|
1072
1072
|
def available_locales; end
|
|
1073
1073
|
|
|
1074
|
-
# source://i18n
|
|
1074
|
+
# source://i18n//lib/i18n/backend/simple.rb#61
|
|
1075
1075
|
def eager_load!; end
|
|
1076
1076
|
|
|
1077
1077
|
# @return [Boolean]
|
|
1078
1078
|
#
|
|
1079
|
-
# source://i18n
|
|
1079
|
+
# source://i18n//lib/i18n/backend/simple.rb#25
|
|
1080
1080
|
def initialized?; end
|
|
1081
1081
|
|
|
1082
1082
|
# Clean up translations hash and set initialized to false on reload!
|
|
1083
1083
|
#
|
|
1084
|
-
# source://i18n
|
|
1084
|
+
# source://i18n//lib/i18n/backend/simple.rb#55
|
|
1085
1085
|
def reload!; end
|
|
1086
1086
|
|
|
1087
1087
|
# Stores translations for the given locale in memory.
|
|
@@ -1089,15 +1089,15 @@ module I18n::Backend::Simple::Implementation
|
|
|
1089
1089
|
# translations will be overwritten by new ones only at the deepest
|
|
1090
1090
|
# level of the hash.
|
|
1091
1091
|
#
|
|
1092
|
-
# source://i18n
|
|
1092
|
+
# source://i18n//lib/i18n/backend/simple.rb#33
|
|
1093
1093
|
def store_translations(locale, data, options = T.unsafe(nil)); end
|
|
1094
1094
|
|
|
1095
|
-
# source://i18n
|
|
1095
|
+
# source://i18n//lib/i18n/backend/simple.rb#66
|
|
1096
1096
|
def translations(do_init: T.unsafe(nil)); end
|
|
1097
1097
|
|
|
1098
1098
|
protected
|
|
1099
1099
|
|
|
1100
|
-
# source://i18n
|
|
1100
|
+
# source://i18n//lib/i18n/backend/simple.rb#76
|
|
1101
1101
|
def init_translations; end
|
|
1102
1102
|
|
|
1103
1103
|
# Looks up a translation from the translations hash. Returns nil if
|
|
@@ -1106,135 +1106,135 @@ module I18n::Backend::Simple::Implementation
|
|
|
1106
1106
|
# into multiple keys, i.e. <tt>currency.format</tt> is regarded the same as
|
|
1107
1107
|
# <tt>%w(currency format)</tt>.
|
|
1108
1108
|
#
|
|
1109
|
-
# source://i18n
|
|
1109
|
+
# source://i18n//lib/i18n/backend/simple.rb#86
|
|
1110
1110
|
def lookup(locale, key, scope = T.unsafe(nil), options = T.unsafe(nil)); end
|
|
1111
1111
|
end
|
|
1112
1112
|
|
|
1113
|
-
# source://i18n
|
|
1113
|
+
# source://i18n//lib/i18n/backend/transliterator.rb#6
|
|
1114
1114
|
module I18n::Backend::Transliterator
|
|
1115
1115
|
# Given a locale and a UTF-8 string, return the locale's ASCII
|
|
1116
1116
|
# approximation for the string.
|
|
1117
1117
|
#
|
|
1118
|
-
# source://i18n
|
|
1118
|
+
# source://i18n//lib/i18n/backend/transliterator.rb#11
|
|
1119
1119
|
def transliterate(locale, string, replacement = T.unsafe(nil)); end
|
|
1120
1120
|
|
|
1121
1121
|
class << self
|
|
1122
1122
|
# Get a transliterator instance.
|
|
1123
1123
|
#
|
|
1124
|
-
# source://i18n
|
|
1124
|
+
# source://i18n//lib/i18n/backend/transliterator.rb#19
|
|
1125
1125
|
def get(rule = T.unsafe(nil)); end
|
|
1126
1126
|
end
|
|
1127
1127
|
end
|
|
1128
1128
|
|
|
1129
|
-
# source://i18n
|
|
1129
|
+
# source://i18n//lib/i18n/backend/transliterator.rb#7
|
|
1130
1130
|
I18n::Backend::Transliterator::DEFAULT_REPLACEMENT_CHAR = T.let(T.unsafe(nil), String)
|
|
1131
1131
|
|
|
1132
1132
|
# A transliterator which accepts a Hash of characters as its translation
|
|
1133
1133
|
# rule.
|
|
1134
1134
|
#
|
|
1135
|
-
# source://i18n
|
|
1135
|
+
# source://i18n//lib/i18n/backend/transliterator.rb#42
|
|
1136
1136
|
class I18n::Backend::Transliterator::HashTransliterator
|
|
1137
1137
|
# @return [HashTransliterator] a new instance of HashTransliterator
|
|
1138
1138
|
#
|
|
1139
|
-
# source://i18n
|
|
1139
|
+
# source://i18n//lib/i18n/backend/transliterator.rb#74
|
|
1140
1140
|
def initialize(rule = T.unsafe(nil)); end
|
|
1141
1141
|
|
|
1142
|
-
# source://i18n
|
|
1142
|
+
# source://i18n//lib/i18n/backend/transliterator.rb#80
|
|
1143
1143
|
def transliterate(string, replacement = T.unsafe(nil)); end
|
|
1144
1144
|
|
|
1145
1145
|
private
|
|
1146
1146
|
|
|
1147
1147
|
# Add transliteration rules to the approximations hash.
|
|
1148
1148
|
#
|
|
1149
|
-
# source://i18n
|
|
1149
|
+
# source://i18n//lib/i18n/backend/transliterator.rb#100
|
|
1150
1150
|
def add(hash); end
|
|
1151
1151
|
|
|
1152
|
-
# source://i18n
|
|
1152
|
+
# source://i18n//lib/i18n/backend/transliterator.rb#93
|
|
1153
1153
|
def add_default_approximations; end
|
|
1154
1154
|
|
|
1155
|
-
# source://i18n
|
|
1155
|
+
# source://i18n//lib/i18n/backend/transliterator.rb#89
|
|
1156
1156
|
def approximations; end
|
|
1157
1157
|
end
|
|
1158
1158
|
|
|
1159
|
-
# source://i18n
|
|
1159
|
+
# source://i18n//lib/i18n/backend/transliterator.rb#43
|
|
1160
1160
|
I18n::Backend::Transliterator::HashTransliterator::DEFAULT_APPROXIMATIONS = T.let(T.unsafe(nil), Hash)
|
|
1161
1161
|
|
|
1162
1162
|
# A transliterator which accepts a Proc as its transliteration rule.
|
|
1163
1163
|
#
|
|
1164
|
-
# source://i18n
|
|
1164
|
+
# source://i18n//lib/i18n/backend/transliterator.rb#30
|
|
1165
1165
|
class I18n::Backend::Transliterator::ProcTransliterator
|
|
1166
1166
|
# @return [ProcTransliterator] a new instance of ProcTransliterator
|
|
1167
1167
|
#
|
|
1168
|
-
# source://i18n
|
|
1168
|
+
# source://i18n//lib/i18n/backend/transliterator.rb#31
|
|
1169
1169
|
def initialize(rule); end
|
|
1170
1170
|
|
|
1171
|
-
# source://i18n
|
|
1171
|
+
# source://i18n//lib/i18n/backend/transliterator.rb#35
|
|
1172
1172
|
def transliterate(string, replacement = T.unsafe(nil)); end
|
|
1173
1173
|
end
|
|
1174
1174
|
|
|
1175
|
-
# source://i18n
|
|
1175
|
+
# source://i18n//lib/i18n.rb#54
|
|
1176
1176
|
module I18n::Base
|
|
1177
|
-
# source://i18n
|
|
1177
|
+
# source://i18n//lib/i18n.rb#69
|
|
1178
1178
|
def available_locales; end
|
|
1179
1179
|
|
|
1180
|
-
# source://i18n
|
|
1180
|
+
# source://i18n//lib/i18n.rb#73
|
|
1181
1181
|
def available_locales=(value); end
|
|
1182
1182
|
|
|
1183
1183
|
# @return [Boolean]
|
|
1184
1184
|
#
|
|
1185
|
-
# source://i18n
|
|
1185
|
+
# source://i18n//lib/i18n.rb#355
|
|
1186
1186
|
def available_locales_initialized?; end
|
|
1187
1187
|
|
|
1188
|
-
# source://i18n
|
|
1188
|
+
# source://i18n//lib/i18n.rb#69
|
|
1189
1189
|
def backend; end
|
|
1190
1190
|
|
|
1191
|
-
# source://i18n
|
|
1191
|
+
# source://i18n//lib/i18n.rb#73
|
|
1192
1192
|
def backend=(value); end
|
|
1193
1193
|
|
|
1194
1194
|
# Gets I18n configuration object.
|
|
1195
1195
|
#
|
|
1196
|
-
# source://i18n
|
|
1196
|
+
# source://i18n//lib/i18n.rb#56
|
|
1197
1197
|
def config; end
|
|
1198
1198
|
|
|
1199
1199
|
# Sets I18n configuration object.
|
|
1200
1200
|
#
|
|
1201
|
-
# source://i18n
|
|
1201
|
+
# source://i18n//lib/i18n.rb#61
|
|
1202
1202
|
def config=(value); end
|
|
1203
1203
|
|
|
1204
|
-
# source://i18n
|
|
1204
|
+
# source://i18n//lib/i18n.rb#69
|
|
1205
1205
|
def default_locale; end
|
|
1206
1206
|
|
|
1207
|
-
# source://i18n
|
|
1207
|
+
# source://i18n//lib/i18n.rb#73
|
|
1208
1208
|
def default_locale=(value); end
|
|
1209
1209
|
|
|
1210
|
-
# source://i18n
|
|
1210
|
+
# source://i18n//lib/i18n.rb#69
|
|
1211
1211
|
def default_separator; end
|
|
1212
1212
|
|
|
1213
|
-
# source://i18n
|
|
1213
|
+
# source://i18n//lib/i18n.rb#73
|
|
1214
1214
|
def default_separator=(value); end
|
|
1215
1215
|
|
|
1216
1216
|
# Tells the backend to load translations now. Used in situations like the
|
|
1217
1217
|
# Rails production environment. Backends can implement whatever strategy
|
|
1218
1218
|
# is useful.
|
|
1219
1219
|
#
|
|
1220
|
-
# source://i18n
|
|
1220
|
+
# source://i18n//lib/i18n.rb#90
|
|
1221
1221
|
def eager_load!; end
|
|
1222
1222
|
|
|
1223
|
-
# source://i18n
|
|
1223
|
+
# source://i18n//lib/i18n.rb#69
|
|
1224
1224
|
def enforce_available_locales; end
|
|
1225
1225
|
|
|
1226
1226
|
# Raises an InvalidLocale exception when the passed locale is not available.
|
|
1227
1227
|
#
|
|
1228
|
-
# source://i18n
|
|
1228
|
+
# source://i18n//lib/i18n.rb#349
|
|
1229
1229
|
def enforce_available_locales!(locale); end
|
|
1230
1230
|
|
|
1231
|
-
# source://i18n
|
|
1231
|
+
# source://i18n//lib/i18n.rb#73
|
|
1232
1232
|
def enforce_available_locales=(value); end
|
|
1233
1233
|
|
|
1234
|
-
# source://i18n
|
|
1234
|
+
# source://i18n//lib/i18n.rb#69
|
|
1235
1235
|
def exception_handler; end
|
|
1236
1236
|
|
|
1237
|
-
# source://i18n
|
|
1237
|
+
# source://i18n//lib/i18n.rb#73
|
|
1238
1238
|
def exception_handler=(value); end
|
|
1239
1239
|
|
|
1240
1240
|
# Returns true if a translation exists for a given key, otherwise returns false.
|
|
@@ -1242,26 +1242,26 @@ module I18n::Base
|
|
|
1242
1242
|
# @raise [Disabled]
|
|
1243
1243
|
# @return [Boolean]
|
|
1244
1244
|
#
|
|
1245
|
-
# source://i18n
|
|
1245
|
+
# source://i18n//lib/i18n.rb#235
|
|
1246
1246
|
def exists?(key, _locale = T.unsafe(nil), locale: T.unsafe(nil), **options); end
|
|
1247
1247
|
|
|
1248
1248
|
# Localizes certain objects, such as dates and numbers to local formatting.
|
|
1249
1249
|
#
|
|
1250
1250
|
# @raise [Disabled]
|
|
1251
1251
|
#
|
|
1252
|
-
# source://i18n
|
|
1252
|
+
# source://i18n//lib/i18n.rb#304
|
|
1253
1253
|
def l(object, locale: T.unsafe(nil), format: T.unsafe(nil), **options); end
|
|
1254
1254
|
|
|
1255
|
-
# source://i18n
|
|
1255
|
+
# source://i18n//lib/i18n.rb#69
|
|
1256
1256
|
def load_path; end
|
|
1257
1257
|
|
|
1258
|
-
# source://i18n
|
|
1258
|
+
# source://i18n//lib/i18n.rb#73
|
|
1259
1259
|
def load_path=(value); end
|
|
1260
1260
|
|
|
1261
|
-
# source://i18n
|
|
1261
|
+
# source://i18n//lib/i18n.rb#69
|
|
1262
1262
|
def locale; end
|
|
1263
1263
|
|
|
1264
|
-
# source://i18n
|
|
1264
|
+
# source://i18n//lib/i18n.rb#73
|
|
1265
1265
|
def locale=(value); end
|
|
1266
1266
|
|
|
1267
1267
|
# Returns true when the passed locale, which can be either a String or a
|
|
@@ -1269,28 +1269,28 @@ module I18n::Base
|
|
|
1269
1269
|
#
|
|
1270
1270
|
# @return [Boolean]
|
|
1271
1271
|
#
|
|
1272
|
-
# source://i18n
|
|
1272
|
+
# source://i18n//lib/i18n.rb#344
|
|
1273
1273
|
def locale_available?(locale); end
|
|
1274
1274
|
|
|
1275
1275
|
# Localizes certain objects, such as dates and numbers to local formatting.
|
|
1276
1276
|
#
|
|
1277
1277
|
# @raise [Disabled]
|
|
1278
1278
|
#
|
|
1279
|
-
# source://i18n
|
|
1279
|
+
# source://i18n//lib/i18n.rb#304
|
|
1280
1280
|
def localize(object, locale: T.unsafe(nil), format: T.unsafe(nil), **options); end
|
|
1281
1281
|
|
|
1282
1282
|
# Merges the given locale, key and scope into a single array of keys.
|
|
1283
1283
|
# Splits keys that contain dots into multiple keys. Makes sure all
|
|
1284
1284
|
# keys are Symbols.
|
|
1285
1285
|
#
|
|
1286
|
-
# source://i18n
|
|
1286
|
+
# source://i18n//lib/i18n.rb#332
|
|
1287
1287
|
def normalize_keys(locale, key, scope, separator = T.unsafe(nil)); end
|
|
1288
1288
|
|
|
1289
1289
|
# Tells the backend to reload translations. Used in situations like the
|
|
1290
1290
|
# Rails development environment. Backends can implement whatever strategy
|
|
1291
1291
|
# is useful.
|
|
1292
1292
|
#
|
|
1293
|
-
# source://i18n
|
|
1293
|
+
# source://i18n//lib/i18n.rb#82
|
|
1294
1294
|
def reload!; end
|
|
1295
1295
|
|
|
1296
1296
|
# Translates, pluralizes and interpolates a given key using a given locale,
|
|
@@ -1411,13 +1411,13 @@ module I18n::Base
|
|
|
1411
1411
|
#
|
|
1412
1412
|
# @raise [Disabled]
|
|
1413
1413
|
#
|
|
1414
|
-
# source://i18n
|
|
1414
|
+
# source://i18n//lib/i18n.rb#210
|
|
1415
1415
|
def t(key = T.unsafe(nil), throw: T.unsafe(nil), raise: T.unsafe(nil), locale: T.unsafe(nil), **options); end
|
|
1416
1416
|
|
|
1417
1417
|
# Wrapper for <tt>translate</tt> that adds <tt>:raise => true</tt>. With
|
|
1418
1418
|
# this option, if no translation is found, it will raise <tt>I18n::MissingTranslationData</tt>
|
|
1419
1419
|
#
|
|
1420
|
-
# source://i18n
|
|
1420
|
+
# source://i18n//lib/i18n.rb#229
|
|
1421
1421
|
def t!(key, **options); end
|
|
1422
1422
|
|
|
1423
1423
|
# Translates, pluralizes and interpolates a given key using a given locale,
|
|
@@ -1538,13 +1538,13 @@ module I18n::Base
|
|
|
1538
1538
|
#
|
|
1539
1539
|
# @raise [Disabled]
|
|
1540
1540
|
#
|
|
1541
|
-
# source://i18n
|
|
1541
|
+
# source://i18n//lib/i18n.rb#210
|
|
1542
1542
|
def translate(key = T.unsafe(nil), throw: T.unsafe(nil), raise: T.unsafe(nil), locale: T.unsafe(nil), **options); end
|
|
1543
1543
|
|
|
1544
1544
|
# Wrapper for <tt>translate</tt> that adds <tt>:raise => true</tt>. With
|
|
1545
1545
|
# this option, if no translation is found, it will raise <tt>I18n::MissingTranslationData</tt>
|
|
1546
1546
|
#
|
|
1547
|
-
# source://i18n
|
|
1547
|
+
# source://i18n//lib/i18n.rb#229
|
|
1548
1548
|
def translate!(key, **options); end
|
|
1549
1549
|
|
|
1550
1550
|
# Transliterates UTF-8 characters to ASCII. By default this method will
|
|
@@ -1599,12 +1599,12 @@ module I18n::Base
|
|
|
1599
1599
|
# I18n.transliterate("Jürgen", :locale => :en) # => "Jurgen"
|
|
1600
1600
|
# I18n.transliterate("Jürgen", :locale => :de) # => "Juergen"
|
|
1601
1601
|
#
|
|
1602
|
-
# source://i18n
|
|
1602
|
+
# source://i18n//lib/i18n.rb#293
|
|
1603
1603
|
def transliterate(key, throw: T.unsafe(nil), raise: T.unsafe(nil), locale: T.unsafe(nil), replacement: T.unsafe(nil), **options); end
|
|
1604
1604
|
|
|
1605
1605
|
# Executes block with given I18n.locale set.
|
|
1606
1606
|
#
|
|
1607
|
-
# source://i18n
|
|
1607
|
+
# source://i18n//lib/i18n.rb#315
|
|
1608
1608
|
def with_locale(tmp_locale = T.unsafe(nil)); end
|
|
1609
1609
|
|
|
1610
1610
|
private
|
|
@@ -1628,100 +1628,100 @@ module I18n::Base
|
|
|
1628
1628
|
# I18n.exception_handler = I18nExceptionHandler.new # an object
|
|
1629
1629
|
# I18n.exception_handler.call(exception, locale, key, options) # will be called like this
|
|
1630
1630
|
#
|
|
1631
|
-
# source://i18n
|
|
1631
|
+
# source://i18n//lib/i18n.rb#391
|
|
1632
1632
|
def handle_exception(handling, exception, locale, key, options); end
|
|
1633
1633
|
|
|
1634
|
-
# source://i18n
|
|
1634
|
+
# source://i18n//lib/i18n.rb#409
|
|
1635
1635
|
def normalize_key(key, separator); end
|
|
1636
1636
|
|
|
1637
|
-
# source://i18n
|
|
1637
|
+
# source://i18n//lib/i18n.rb#361
|
|
1638
1638
|
def translate_key(key, throw, raise, locale, backend, options); end
|
|
1639
1639
|
end
|
|
1640
1640
|
|
|
1641
|
-
# source://i18n
|
|
1641
|
+
# source://i18n//lib/i18n/config.rb#6
|
|
1642
1642
|
class I18n::Config
|
|
1643
1643
|
# Returns an array of locales for which translations are available.
|
|
1644
1644
|
# Unless you explicitly set these through I18n.available_locales=
|
|
1645
1645
|
# the call will be delegated to the backend.
|
|
1646
1646
|
#
|
|
1647
|
-
# source://i18n
|
|
1647
|
+
# source://i18n//lib/i18n/config.rb#43
|
|
1648
1648
|
def available_locales; end
|
|
1649
1649
|
|
|
1650
1650
|
# Sets the available locales.
|
|
1651
1651
|
#
|
|
1652
|
-
# source://i18n
|
|
1652
|
+
# source://i18n//lib/i18n/config.rb#57
|
|
1653
1653
|
def available_locales=(locales); end
|
|
1654
1654
|
|
|
1655
1655
|
# Returns true if the available_locales have been initialized
|
|
1656
1656
|
#
|
|
1657
1657
|
# @return [Boolean]
|
|
1658
1658
|
#
|
|
1659
|
-
# source://i18n
|
|
1659
|
+
# source://i18n//lib/i18n/config.rb#64
|
|
1660
1660
|
def available_locales_initialized?; end
|
|
1661
1661
|
|
|
1662
1662
|
# Caches the available locales list as both strings and symbols in a Set, so
|
|
1663
1663
|
# that we can have faster lookups to do the available locales enforce check.
|
|
1664
1664
|
#
|
|
1665
|
-
# source://i18n
|
|
1665
|
+
# source://i18n//lib/i18n/config.rb#50
|
|
1666
1666
|
def available_locales_set; end
|
|
1667
1667
|
|
|
1668
1668
|
# Returns the current backend. Defaults to +Backend::Simple+.
|
|
1669
1669
|
#
|
|
1670
|
-
# source://i18n
|
|
1670
|
+
# source://i18n//lib/i18n/config.rb#20
|
|
1671
1671
|
def backend; end
|
|
1672
1672
|
|
|
1673
1673
|
# Sets the current backend. Used to set a custom backend.
|
|
1674
1674
|
#
|
|
1675
|
-
# source://i18n
|
|
1675
|
+
# source://i18n//lib/i18n/config.rb#25
|
|
1676
1676
|
def backend=(backend); end
|
|
1677
1677
|
|
|
1678
1678
|
# Clears the available locales set so it can be recomputed again after I18n
|
|
1679
1679
|
# gets reloaded.
|
|
1680
1680
|
#
|
|
1681
|
-
# source://i18n
|
|
1681
|
+
# source://i18n//lib/i18n/config.rb#70
|
|
1682
1682
|
def clear_available_locales_set; end
|
|
1683
1683
|
|
|
1684
1684
|
# Returns the current default locale. Defaults to :'en'
|
|
1685
1685
|
#
|
|
1686
|
-
# source://i18n
|
|
1686
|
+
# source://i18n//lib/i18n/config.rb#30
|
|
1687
1687
|
def default_locale; end
|
|
1688
1688
|
|
|
1689
1689
|
# Sets the current default locale. Used to set a custom default locale.
|
|
1690
1690
|
#
|
|
1691
|
-
# source://i18n
|
|
1691
|
+
# source://i18n//lib/i18n/config.rb#35
|
|
1692
1692
|
def default_locale=(locale); end
|
|
1693
1693
|
|
|
1694
1694
|
# Returns the current default scope separator. Defaults to '.'
|
|
1695
1695
|
#
|
|
1696
|
-
# source://i18n
|
|
1696
|
+
# source://i18n//lib/i18n/config.rb#75
|
|
1697
1697
|
def default_separator; end
|
|
1698
1698
|
|
|
1699
1699
|
# Sets the current default scope separator.
|
|
1700
1700
|
#
|
|
1701
|
-
# source://i18n
|
|
1701
|
+
# source://i18n//lib/i18n/config.rb#80
|
|
1702
1702
|
def default_separator=(separator); end
|
|
1703
1703
|
|
|
1704
|
-
# source://i18n
|
|
1704
|
+
# source://i18n//lib/i18n/config.rb#141
|
|
1705
1705
|
def enforce_available_locales; end
|
|
1706
1706
|
|
|
1707
|
-
# source://i18n
|
|
1707
|
+
# source://i18n//lib/i18n/config.rb#145
|
|
1708
1708
|
def enforce_available_locales=(enforce_available_locales); end
|
|
1709
1709
|
|
|
1710
1710
|
# Returns the current exception handler. Defaults to an instance of
|
|
1711
1711
|
# I18n::ExceptionHandler.
|
|
1712
1712
|
#
|
|
1713
|
-
# source://i18n
|
|
1713
|
+
# source://i18n//lib/i18n/config.rb#86
|
|
1714
1714
|
def exception_handler; end
|
|
1715
1715
|
|
|
1716
1716
|
# Sets the exception handler.
|
|
1717
1717
|
#
|
|
1718
|
-
# source://i18n
|
|
1718
|
+
# source://i18n//lib/i18n/config.rb#91
|
|
1719
1719
|
def exception_handler=(exception_handler); end
|
|
1720
1720
|
|
|
1721
1721
|
# Returns the current interpolation patterns. Defaults to
|
|
1722
1722
|
# I18n::DEFAULT_INTERPOLATION_PATTERNS.
|
|
1723
1723
|
#
|
|
1724
|
-
# source://i18n
|
|
1724
|
+
# source://i18n//lib/i18n/config.rb#151
|
|
1725
1725
|
def interpolation_patterns; end
|
|
1726
1726
|
|
|
1727
1727
|
# Sets the current interpolation patterns. Used to set a interpolation
|
|
@@ -1731,7 +1731,7 @@ class I18n::Config
|
|
|
1731
1731
|
#
|
|
1732
1732
|
# I18n.config.interpolation_patterns << /\{\{(\w+)\}\}/
|
|
1733
1733
|
#
|
|
1734
|
-
# source://i18n
|
|
1734
|
+
# source://i18n//lib/i18n/config.rb#161
|
|
1735
1735
|
def interpolation_patterns=(interpolation_patterns); end
|
|
1736
1736
|
|
|
1737
1737
|
# Allow clients to register paths providing translation data sources. The
|
|
@@ -1743,30 +1743,30 @@ class I18n::Config
|
|
|
1743
1743
|
# register translation files like this:
|
|
1744
1744
|
# I18n.load_path << 'path/to/locale/en.yml'
|
|
1745
1745
|
#
|
|
1746
|
-
# source://i18n
|
|
1746
|
+
# source://i18n//lib/i18n/config.rb#126
|
|
1747
1747
|
def load_path; end
|
|
1748
1748
|
|
|
1749
1749
|
# Sets the load path instance. Custom implementations are expected to
|
|
1750
1750
|
# behave like a Ruby Array.
|
|
1751
1751
|
#
|
|
1752
|
-
# source://i18n
|
|
1752
|
+
# source://i18n//lib/i18n/config.rb#132
|
|
1753
1753
|
def load_path=(load_path); end
|
|
1754
1754
|
|
|
1755
1755
|
# The only configuration value that is not global and scoped to thread is :locale.
|
|
1756
1756
|
# It defaults to the default_locale.
|
|
1757
1757
|
#
|
|
1758
|
-
# source://i18n
|
|
1758
|
+
# source://i18n//lib/i18n/config.rb#9
|
|
1759
1759
|
def locale; end
|
|
1760
1760
|
|
|
1761
1761
|
# Sets the current locale pseudo-globally, i.e. in the Thread.current hash.
|
|
1762
1762
|
#
|
|
1763
|
-
# source://i18n
|
|
1763
|
+
# source://i18n//lib/i18n/config.rb#14
|
|
1764
1764
|
def locale=(locale); end
|
|
1765
1765
|
|
|
1766
1766
|
# Returns the current handler for situations when interpolation argument
|
|
1767
1767
|
# is missing. MissingInterpolationArgument will be raised by default.
|
|
1768
1768
|
#
|
|
1769
|
-
# source://i18n
|
|
1769
|
+
# source://i18n//lib/i18n/config.rb#97
|
|
1770
1770
|
def missing_interpolation_argument_handler; end
|
|
1771
1771
|
|
|
1772
1772
|
# Sets the missing interpolation argument handler. It can be any
|
|
@@ -1781,34 +1781,34 @@ class I18n::Config
|
|
|
1781
1781
|
# "#{key} is missing"
|
|
1782
1782
|
# end
|
|
1783
1783
|
#
|
|
1784
|
-
# source://i18n
|
|
1784
|
+
# source://i18n//lib/i18n/config.rb#114
|
|
1785
1785
|
def missing_interpolation_argument_handler=(exception_handler); end
|
|
1786
1786
|
end
|
|
1787
1787
|
|
|
1788
|
-
# source://i18n
|
|
1788
|
+
# source://i18n//lib/i18n/interpolate/ruby.rb#5
|
|
1789
1789
|
I18n::DEFAULT_INTERPOLATION_PATTERNS = T.let(T.unsafe(nil), Array)
|
|
1790
1790
|
|
|
1791
|
-
# source://i18n
|
|
1791
|
+
# source://i18n//lib/i18n/exceptions.rb#18
|
|
1792
1792
|
class I18n::Disabled < ::I18n::ArgumentError
|
|
1793
1793
|
# @return [Disabled] a new instance of Disabled
|
|
1794
1794
|
#
|
|
1795
|
-
# source://i18n
|
|
1795
|
+
# source://i18n//lib/i18n/exceptions.rb#19
|
|
1796
1796
|
def initialize(method); end
|
|
1797
1797
|
end
|
|
1798
1798
|
|
|
1799
|
-
# source://i18n
|
|
1799
|
+
# source://i18n//lib/i18n.rb#35
|
|
1800
1800
|
I18n::EMPTY_HASH = T.let(T.unsafe(nil), Hash)
|
|
1801
1801
|
|
|
1802
|
-
# source://i18n
|
|
1802
|
+
# source://i18n//lib/i18n/exceptions.rb#6
|
|
1803
1803
|
class I18n::ExceptionHandler
|
|
1804
|
-
# source://i18n
|
|
1804
|
+
# source://i18n//lib/i18n/exceptions.rb#7
|
|
1805
1805
|
def call(exception, _locale, _key, _options); end
|
|
1806
1806
|
end
|
|
1807
1807
|
|
|
1808
|
-
# source://i18n
|
|
1808
|
+
# source://i18n//lib/i18n/gettext.rb#4
|
|
1809
1809
|
module I18n::Gettext
|
|
1810
1810
|
class << self
|
|
1811
|
-
# source://i18n
|
|
1811
|
+
# source://i18n//lib/i18n/gettext.rb#21
|
|
1812
1812
|
def extract_scope(msgid, separator); end
|
|
1813
1813
|
|
|
1814
1814
|
# returns an array of plural keys for the given locale or the whole hash
|
|
@@ -1816,12 +1816,12 @@ module I18n::Gettext
|
|
|
1816
1816
|
# integer-index based style
|
|
1817
1817
|
# TODO move this information to the pluralization module
|
|
1818
1818
|
#
|
|
1819
|
-
# source://i18n
|
|
1819
|
+
# source://i18n//lib/i18n/gettext.rb#17
|
|
1820
1820
|
def plural_keys(*args); end
|
|
1821
1821
|
end
|
|
1822
1822
|
end
|
|
1823
1823
|
|
|
1824
|
-
# source://i18n
|
|
1824
|
+
# source://i18n//lib/i18n/gettext.rb#6
|
|
1825
1825
|
I18n::Gettext::CONTEXT_SEPARATOR = T.let(T.unsafe(nil), String)
|
|
1826
1826
|
|
|
1827
1827
|
# Implements classical Gettext style accessors. To use this include the
|
|
@@ -1829,7 +1829,7 @@ I18n::Gettext::CONTEXT_SEPARATOR = T.let(T.unsafe(nil), String)
|
|
|
1829
1829
|
#
|
|
1830
1830
|
# include I18n::Gettext::Helpers
|
|
1831
1831
|
#
|
|
1832
|
-
# source://i18n
|
|
1832
|
+
# source://i18n//lib/i18n/gettext/helpers.rb#11
|
|
1833
1833
|
module I18n::Gettext::Helpers
|
|
1834
1834
|
# Makes dynamic translation messages readable for the gettext parser.
|
|
1835
1835
|
# <tt>_(fruit)</tt> cannot be understood by the gettext parser. To help the parser find all your translations,
|
|
@@ -1837,460 +1837,460 @@ module I18n::Gettext::Helpers
|
|
|
1837
1837
|
# * msgid: the message id.
|
|
1838
1838
|
# * Returns: msgid.
|
|
1839
1839
|
#
|
|
1840
|
-
# source://i18n
|
|
1840
|
+
# source://i18n//lib/i18n/gettext/helpers.rb#17
|
|
1841
1841
|
def N_(msgsid); end
|
|
1842
1842
|
|
|
1843
|
-
# source://i18n
|
|
1843
|
+
# source://i18n//lib/i18n/gettext/helpers.rb#21
|
|
1844
1844
|
def _(msgid, options = T.unsafe(nil)); end
|
|
1845
1845
|
|
|
1846
|
-
# source://i18n
|
|
1846
|
+
# source://i18n//lib/i18n/gettext/helpers.rb#21
|
|
1847
1847
|
def gettext(msgid, options = T.unsafe(nil)); end
|
|
1848
1848
|
|
|
1849
|
-
# source://i18n
|
|
1849
|
+
# source://i18n//lib/i18n/gettext/helpers.rb#38
|
|
1850
1850
|
def n_(msgid, msgid_plural, n = T.unsafe(nil)); end
|
|
1851
1851
|
|
|
1852
|
-
# source://i18n
|
|
1852
|
+
# source://i18n//lib/i18n/gettext/helpers.rb#38
|
|
1853
1853
|
def ngettext(msgid, msgid_plural, n = T.unsafe(nil)); end
|
|
1854
1854
|
|
|
1855
1855
|
# Method signatures:
|
|
1856
1856
|
# npgettext('Fruits', 'apple', 'apples', 2)
|
|
1857
1857
|
# npgettext('Fruits', ['apple', 'apples'], 2)
|
|
1858
1858
|
#
|
|
1859
|
-
# source://i18n
|
|
1859
|
+
# source://i18n//lib/i18n/gettext/helpers.rb#61
|
|
1860
1860
|
def np_(msgctxt, msgid, msgid_plural, n = T.unsafe(nil)); end
|
|
1861
1861
|
|
|
1862
1862
|
# Method signatures:
|
|
1863
1863
|
# npgettext('Fruits', 'apple', 'apples', 2)
|
|
1864
1864
|
# npgettext('Fruits', ['apple', 'apples'], 2)
|
|
1865
1865
|
#
|
|
1866
|
-
# source://i18n
|
|
1866
|
+
# source://i18n//lib/i18n/gettext/helpers.rb#61
|
|
1867
1867
|
def npgettext(msgctxt, msgid, msgid_plural, n = T.unsafe(nil)); end
|
|
1868
1868
|
|
|
1869
1869
|
# Method signatures:
|
|
1870
1870
|
# nsgettext('Fruits|apple', 'apples', 2)
|
|
1871
1871
|
# nsgettext(['Fruits|apple', 'apples'], 2)
|
|
1872
1872
|
#
|
|
1873
|
-
# source://i18n
|
|
1873
|
+
# source://i18n//lib/i18n/gettext/helpers.rb#46
|
|
1874
1874
|
def ns_(msgid, msgid_plural, n = T.unsafe(nil), separator = T.unsafe(nil)); end
|
|
1875
1875
|
|
|
1876
1876
|
# Method signatures:
|
|
1877
1877
|
# nsgettext('Fruits|apple', 'apples', 2)
|
|
1878
1878
|
# nsgettext(['Fruits|apple', 'apples'], 2)
|
|
1879
1879
|
#
|
|
1880
|
-
# source://i18n
|
|
1880
|
+
# source://i18n//lib/i18n/gettext/helpers.rb#46
|
|
1881
1881
|
def nsgettext(msgid, msgid_plural, n = T.unsafe(nil), separator = T.unsafe(nil)); end
|
|
1882
1882
|
|
|
1883
|
-
# source://i18n
|
|
1883
|
+
# source://i18n//lib/i18n/gettext/helpers.rb#32
|
|
1884
1884
|
def p_(msgctxt, msgid); end
|
|
1885
1885
|
|
|
1886
|
-
# source://i18n
|
|
1886
|
+
# source://i18n//lib/i18n/gettext/helpers.rb#32
|
|
1887
1887
|
def pgettext(msgctxt, msgid); end
|
|
1888
1888
|
|
|
1889
|
-
# source://i18n
|
|
1889
|
+
# source://i18n//lib/i18n/gettext/helpers.rb#26
|
|
1890
1890
|
def s_(msgid, separator = T.unsafe(nil)); end
|
|
1891
1891
|
|
|
1892
|
-
# source://i18n
|
|
1892
|
+
# source://i18n//lib/i18n/gettext/helpers.rb#26
|
|
1893
1893
|
def sgettext(msgid, separator = T.unsafe(nil)); end
|
|
1894
1894
|
end
|
|
1895
1895
|
|
|
1896
|
-
# source://i18n
|
|
1896
|
+
# source://i18n//lib/i18n/gettext.rb#5
|
|
1897
1897
|
I18n::Gettext::PLURAL_SEPARATOR = T.let(T.unsafe(nil), String)
|
|
1898
1898
|
|
|
1899
|
-
# source://i18n
|
|
1899
|
+
# source://i18n//lib/i18n/interpolate/ruby.rb#10
|
|
1900
1900
|
I18n::INTERPOLATION_PATTERN = T.let(T.unsafe(nil), Regexp)
|
|
1901
1901
|
|
|
1902
|
-
# source://i18n
|
|
1902
|
+
# source://i18n//lib/i18n/exceptions.rb#124
|
|
1903
1903
|
class I18n::InvalidFilenames < ::I18n::ArgumentError
|
|
1904
1904
|
# @return [InvalidFilenames] a new instance of InvalidFilenames
|
|
1905
1905
|
#
|
|
1906
|
-
# source://i18n
|
|
1906
|
+
# source://i18n//lib/i18n/exceptions.rb#126
|
|
1907
1907
|
def initialize(file_errors); end
|
|
1908
1908
|
end
|
|
1909
1909
|
|
|
1910
|
-
# source://i18n
|
|
1910
|
+
# source://i18n//lib/i18n/exceptions.rb#125
|
|
1911
1911
|
I18n::InvalidFilenames::NUMBER_OF_ERRORS_SHOWN = T.let(T.unsafe(nil), Integer)
|
|
1912
1912
|
|
|
1913
|
-
# source://i18n
|
|
1913
|
+
# source://i18n//lib/i18n/exceptions.rb#32
|
|
1914
1914
|
class I18n::InvalidLocale < ::I18n::ArgumentError
|
|
1915
1915
|
# @return [InvalidLocale] a new instance of InvalidLocale
|
|
1916
1916
|
#
|
|
1917
|
-
# source://i18n
|
|
1917
|
+
# source://i18n//lib/i18n/exceptions.rb#34
|
|
1918
1918
|
def initialize(locale); end
|
|
1919
1919
|
|
|
1920
1920
|
# Returns the value of attribute locale.
|
|
1921
1921
|
#
|
|
1922
|
-
# source://i18n
|
|
1922
|
+
# source://i18n//lib/i18n/exceptions.rb#33
|
|
1923
1923
|
def locale; end
|
|
1924
1924
|
end
|
|
1925
1925
|
|
|
1926
|
-
# source://i18n
|
|
1926
|
+
# source://i18n//lib/i18n/exceptions.rb#40
|
|
1927
1927
|
class I18n::InvalidLocaleData < ::I18n::ArgumentError
|
|
1928
1928
|
# @return [InvalidLocaleData] a new instance of InvalidLocaleData
|
|
1929
1929
|
#
|
|
1930
|
-
# source://i18n
|
|
1930
|
+
# source://i18n//lib/i18n/exceptions.rb#42
|
|
1931
1931
|
def initialize(filename, exception_message); end
|
|
1932
1932
|
|
|
1933
1933
|
# Returns the value of attribute filename.
|
|
1934
1934
|
#
|
|
1935
|
-
# source://i18n
|
|
1935
|
+
# source://i18n//lib/i18n/exceptions.rb#41
|
|
1936
1936
|
def filename; end
|
|
1937
1937
|
end
|
|
1938
1938
|
|
|
1939
|
-
# source://i18n
|
|
1939
|
+
# source://i18n//lib/i18n/exceptions.rb#82
|
|
1940
1940
|
class I18n::InvalidPluralizationData < ::I18n::ArgumentError
|
|
1941
1941
|
# @return [InvalidPluralizationData] a new instance of InvalidPluralizationData
|
|
1942
1942
|
#
|
|
1943
|
-
# source://i18n
|
|
1943
|
+
# source://i18n//lib/i18n/exceptions.rb#84
|
|
1944
1944
|
def initialize(entry, count, key); end
|
|
1945
1945
|
|
|
1946
1946
|
# Returns the value of attribute count.
|
|
1947
1947
|
#
|
|
1948
|
-
# source://i18n
|
|
1948
|
+
# source://i18n//lib/i18n/exceptions.rb#83
|
|
1949
1949
|
def count; end
|
|
1950
1950
|
|
|
1951
1951
|
# Returns the value of attribute entry.
|
|
1952
1952
|
#
|
|
1953
|
-
# source://i18n
|
|
1953
|
+
# source://i18n//lib/i18n/exceptions.rb#83
|
|
1954
1954
|
def entry; end
|
|
1955
1955
|
|
|
1956
1956
|
# Returns the value of attribute key.
|
|
1957
1957
|
#
|
|
1958
|
-
# source://i18n
|
|
1958
|
+
# source://i18n//lib/i18n/exceptions.rb#83
|
|
1959
1959
|
def key; end
|
|
1960
1960
|
end
|
|
1961
1961
|
|
|
1962
|
-
# source://i18n
|
|
1962
|
+
# source://i18n//lib/i18n/backend/key_value.rb#21
|
|
1963
1963
|
I18n::JSON = ActiveSupport::JSON
|
|
1964
1964
|
|
|
1965
|
-
# source://i18n
|
|
1965
|
+
# source://i18n//lib/i18n/locale.rb#4
|
|
1966
1966
|
module I18n::Locale; end
|
|
1967
1967
|
|
|
1968
|
-
# source://i18n
|
|
1968
|
+
# source://i18n//lib/i18n/locale/fallbacks.rb#48
|
|
1969
1969
|
class I18n::Locale::Fallbacks < ::Hash
|
|
1970
1970
|
# @return [Fallbacks] a new instance of Fallbacks
|
|
1971
1971
|
#
|
|
1972
|
-
# source://i18n
|
|
1972
|
+
# source://i18n//lib/i18n/locale/fallbacks.rb#49
|
|
1973
1973
|
def initialize(*mappings); end
|
|
1974
1974
|
|
|
1975
1975
|
# @raise [InvalidLocale]
|
|
1976
1976
|
#
|
|
1977
|
-
# source://i18n
|
|
1977
|
+
# source://i18n//lib/i18n/locale/fallbacks.rb#60
|
|
1978
1978
|
def [](locale); end
|
|
1979
1979
|
|
|
1980
1980
|
# Returns the value of attribute defaults.
|
|
1981
1981
|
#
|
|
1982
|
-
# source://i18n
|
|
1982
|
+
# source://i18n//lib/i18n/locale/fallbacks.rb#58
|
|
1983
1983
|
def defaults; end
|
|
1984
1984
|
|
|
1985
|
-
# source://i18n
|
|
1985
|
+
# source://i18n//lib/i18n/locale/fallbacks.rb#55
|
|
1986
1986
|
def defaults=(defaults); end
|
|
1987
1987
|
|
|
1988
|
-
# source://i18n
|
|
1988
|
+
# source://i18n//lib/i18n/locale/fallbacks.rb#67
|
|
1989
1989
|
def map(*args, &block); end
|
|
1990
1990
|
|
|
1991
1991
|
protected
|
|
1992
1992
|
|
|
1993
|
-
# source://i18n
|
|
1993
|
+
# source://i18n//lib/i18n/locale/fallbacks.rb#84
|
|
1994
1994
|
def compute(tags, include_defaults = T.unsafe(nil), exclude = T.unsafe(nil)); end
|
|
1995
1995
|
end
|
|
1996
1996
|
|
|
1997
|
-
# source://i18n
|
|
1997
|
+
# source://i18n//lib/i18n/locale/tag.rb#5
|
|
1998
1998
|
module I18n::Locale::Tag
|
|
1999
1999
|
class << self
|
|
2000
2000
|
# Returns the current locale tag implementation. Defaults to +I18n::Locale::Tag::Simple+.
|
|
2001
2001
|
#
|
|
2002
|
-
# source://i18n
|
|
2002
|
+
# source://i18n//lib/i18n/locale/tag.rb#12
|
|
2003
2003
|
def implementation; end
|
|
2004
2004
|
|
|
2005
2005
|
# Sets the current locale tag implementation. Use this to set a different locale tag implementation.
|
|
2006
2006
|
#
|
|
2007
|
-
# source://i18n
|
|
2007
|
+
# source://i18n//lib/i18n/locale/tag.rb#17
|
|
2008
2008
|
def implementation=(implementation); end
|
|
2009
2009
|
|
|
2010
2010
|
# Factory method for locale tags. Delegates to the current locale tag implementation.
|
|
2011
2011
|
#
|
|
2012
|
-
# source://i18n
|
|
2012
|
+
# source://i18n//lib/i18n/locale/tag.rb#22
|
|
2013
2013
|
def tag(tag); end
|
|
2014
2014
|
end
|
|
2015
2015
|
end
|
|
2016
2016
|
|
|
2017
|
-
# source://i18n
|
|
2017
|
+
# source://i18n//lib/i18n/locale/tag/parents.rb#4
|
|
2018
2018
|
module I18n::Locale::Tag::Parents
|
|
2019
|
-
# source://i18n
|
|
2019
|
+
# source://i18n//lib/i18n/locale/tag/parents.rb#5
|
|
2020
2020
|
def parent; end
|
|
2021
2021
|
|
|
2022
|
-
# source://i18n
|
|
2022
|
+
# source://i18n//lib/i18n/locale/tag/parents.rb#18
|
|
2023
2023
|
def parents; end
|
|
2024
2024
|
|
|
2025
|
-
# source://i18n
|
|
2025
|
+
# source://i18n//lib/i18n/locale/tag/parents.rb#14
|
|
2026
2026
|
def self_and_parents; end
|
|
2027
2027
|
end
|
|
2028
2028
|
|
|
2029
|
-
# source://i18n
|
|
2029
|
+
# source://i18n//lib/i18n/locale/tag/rfc4646.rb#12
|
|
2030
2030
|
I18n::Locale::Tag::RFC4646_FORMATS = T.let(T.unsafe(nil), Hash)
|
|
2031
2031
|
|
|
2032
|
-
# source://i18n
|
|
2032
|
+
# source://i18n//lib/i18n/locale/tag/rfc4646.rb#11
|
|
2033
2033
|
I18n::Locale::Tag::RFC4646_SUBTAGS = T.let(T.unsafe(nil), Array)
|
|
2034
2034
|
|
|
2035
|
-
# source://i18n
|
|
2035
|
+
# source://i18n//lib/i18n/locale/tag/rfc4646.rb#14
|
|
2036
2036
|
class I18n::Locale::Tag::Rfc4646 < ::Struct
|
|
2037
2037
|
include ::I18n::Locale::Tag::Parents
|
|
2038
2038
|
|
|
2039
|
-
# source://i18n
|
|
2039
|
+
# source://i18n//lib/i18n/locale/tag/rfc4646.rb#35
|
|
2040
2040
|
def language; end
|
|
2041
2041
|
|
|
2042
|
-
# source://i18n
|
|
2042
|
+
# source://i18n//lib/i18n/locale/tag/rfc4646.rb#35
|
|
2043
2043
|
def region; end
|
|
2044
2044
|
|
|
2045
|
-
# source://i18n
|
|
2045
|
+
# source://i18n//lib/i18n/locale/tag/rfc4646.rb#35
|
|
2046
2046
|
def script; end
|
|
2047
2047
|
|
|
2048
|
-
# source://i18n
|
|
2048
|
+
# source://i18n//lib/i18n/locale/tag/rfc4646.rb#46
|
|
2049
2049
|
def to_a; end
|
|
2050
2050
|
|
|
2051
|
-
# source://i18n
|
|
2051
|
+
# source://i18n//lib/i18n/locale/tag/rfc4646.rb#42
|
|
2052
2052
|
def to_s; end
|
|
2053
2053
|
|
|
2054
|
-
# source://i18n
|
|
2054
|
+
# source://i18n//lib/i18n/locale/tag/rfc4646.rb#38
|
|
2055
2055
|
def to_sym; end
|
|
2056
2056
|
|
|
2057
|
-
# source://i18n
|
|
2057
|
+
# source://i18n//lib/i18n/locale/tag/rfc4646.rb#35
|
|
2058
2058
|
def variant; end
|
|
2059
2059
|
|
|
2060
2060
|
class << self
|
|
2061
|
-
# source://i18n
|
|
2061
|
+
# source://i18n//lib/i18n/locale/tag/rfc4646.rb#23
|
|
2062
2062
|
def parser; end
|
|
2063
2063
|
|
|
2064
|
-
# source://i18n
|
|
2064
|
+
# source://i18n//lib/i18n/locale/tag/rfc4646.rb#27
|
|
2065
2065
|
def parser=(parser); end
|
|
2066
2066
|
|
|
2067
2067
|
# Parses the given tag and returns a Tag instance if it is valid.
|
|
2068
2068
|
# Returns false if the given tag is not valid according to RFC 4646.
|
|
2069
2069
|
#
|
|
2070
|
-
# source://i18n
|
|
2070
|
+
# source://i18n//lib/i18n/locale/tag/rfc4646.rb#18
|
|
2071
2071
|
def tag(tag); end
|
|
2072
2072
|
end
|
|
2073
2073
|
end
|
|
2074
2074
|
|
|
2075
|
-
# source://i18n
|
|
2075
|
+
# source://i18n//lib/i18n/locale/tag/rfc4646.rb#50
|
|
2076
2076
|
module I18n::Locale::Tag::Rfc4646::Parser
|
|
2077
2077
|
class << self
|
|
2078
|
-
# source://i18n
|
|
2078
|
+
# source://i18n//lib/i18n/locale/tag/rfc4646.rb#63
|
|
2079
2079
|
def match(tag); end
|
|
2080
2080
|
end
|
|
2081
2081
|
end
|
|
2082
2082
|
|
|
2083
|
-
# source://i18n
|
|
2083
|
+
# source://i18n//lib/i18n/locale/tag/rfc4646.rb#51
|
|
2084
2084
|
I18n::Locale::Tag::Rfc4646::Parser::PATTERN = T.let(T.unsafe(nil), Regexp)
|
|
2085
2085
|
|
|
2086
|
-
# source://i18n
|
|
2086
|
+
# source://i18n//lib/i18n/locale/tag/simple.rb#6
|
|
2087
2087
|
class I18n::Locale::Tag::Simple
|
|
2088
2088
|
include ::I18n::Locale::Tag::Parents
|
|
2089
2089
|
|
|
2090
2090
|
# @return [Simple] a new instance of Simple
|
|
2091
2091
|
#
|
|
2092
|
-
# source://i18n
|
|
2092
|
+
# source://i18n//lib/i18n/locale/tag/simple.rb#17
|
|
2093
2093
|
def initialize(*tag); end
|
|
2094
2094
|
|
|
2095
|
-
# source://i18n
|
|
2095
|
+
# source://i18n//lib/i18n/locale/tag/simple.rb#21
|
|
2096
2096
|
def subtags; end
|
|
2097
2097
|
|
|
2098
2098
|
# Returns the value of attribute tag.
|
|
2099
2099
|
#
|
|
2100
|
-
# source://i18n
|
|
2100
|
+
# source://i18n//lib/i18n/locale/tag/simple.rb#15
|
|
2101
2101
|
def tag; end
|
|
2102
2102
|
|
|
2103
|
-
# source://i18n
|
|
2103
|
+
# source://i18n//lib/i18n/locale/tag/simple.rb#33
|
|
2104
2104
|
def to_a; end
|
|
2105
2105
|
|
|
2106
|
-
# source://i18n
|
|
2106
|
+
# source://i18n//lib/i18n/locale/tag/simple.rb#29
|
|
2107
2107
|
def to_s; end
|
|
2108
2108
|
|
|
2109
|
-
# source://i18n
|
|
2109
|
+
# source://i18n//lib/i18n/locale/tag/simple.rb#25
|
|
2110
2110
|
def to_sym; end
|
|
2111
2111
|
|
|
2112
2112
|
class << self
|
|
2113
|
-
# source://i18n
|
|
2113
|
+
# source://i18n//lib/i18n/locale/tag/simple.rb#8
|
|
2114
2114
|
def tag(tag); end
|
|
2115
2115
|
end
|
|
2116
2116
|
end
|
|
2117
2117
|
|
|
2118
|
-
# source://i18n
|
|
2118
|
+
# source://i18n//lib/i18n/middleware.rb#4
|
|
2119
2119
|
class I18n::Middleware
|
|
2120
2120
|
# @return [Middleware] a new instance of Middleware
|
|
2121
2121
|
#
|
|
2122
|
-
# source://i18n
|
|
2122
|
+
# source://i18n//lib/i18n/middleware.rb#6
|
|
2123
2123
|
def initialize(app); end
|
|
2124
2124
|
|
|
2125
|
-
# source://i18n
|
|
2125
|
+
# source://i18n//lib/i18n/middleware.rb#10
|
|
2126
2126
|
def call(env); end
|
|
2127
2127
|
end
|
|
2128
2128
|
|
|
2129
|
-
# source://i18n
|
|
2129
|
+
# source://i18n//lib/i18n/exceptions.rb#90
|
|
2130
2130
|
class I18n::MissingInterpolationArgument < ::I18n::ArgumentError
|
|
2131
2131
|
# @return [MissingInterpolationArgument] a new instance of MissingInterpolationArgument
|
|
2132
2132
|
#
|
|
2133
|
-
# source://i18n
|
|
2133
|
+
# source://i18n//lib/i18n/exceptions.rb#92
|
|
2134
2134
|
def initialize(key, values, string); end
|
|
2135
2135
|
|
|
2136
2136
|
# Returns the value of attribute key.
|
|
2137
2137
|
#
|
|
2138
|
-
# source://i18n
|
|
2138
|
+
# source://i18n//lib/i18n/exceptions.rb#91
|
|
2139
2139
|
def key; end
|
|
2140
2140
|
|
|
2141
2141
|
# Returns the value of attribute string.
|
|
2142
2142
|
#
|
|
2143
|
-
# source://i18n
|
|
2143
|
+
# source://i18n//lib/i18n/exceptions.rb#91
|
|
2144
2144
|
def string; end
|
|
2145
2145
|
|
|
2146
2146
|
# Returns the value of attribute values.
|
|
2147
2147
|
#
|
|
2148
|
-
# source://i18n
|
|
2148
|
+
# source://i18n//lib/i18n/exceptions.rb#91
|
|
2149
2149
|
def values; end
|
|
2150
2150
|
end
|
|
2151
2151
|
|
|
2152
|
-
# source://i18n
|
|
2152
|
+
# source://i18n//lib/i18n/exceptions.rb#48
|
|
2153
2153
|
class I18n::MissingTranslation < ::I18n::ArgumentError
|
|
2154
2154
|
include ::I18n::MissingTranslation::Base
|
|
2155
2155
|
end
|
|
2156
2156
|
|
|
2157
|
-
# source://i18n
|
|
2157
|
+
# source://i18n//lib/i18n/exceptions.rb#49
|
|
2158
2158
|
module I18n::MissingTranslation::Base
|
|
2159
|
-
# source://i18n
|
|
2159
|
+
# source://i18n//lib/i18n/exceptions.rb#54
|
|
2160
2160
|
def initialize(locale, key, options = T.unsafe(nil)); end
|
|
2161
2161
|
|
|
2162
2162
|
# Returns the value of attribute key.
|
|
2163
2163
|
#
|
|
2164
|
-
# source://i18n
|
|
2164
|
+
# source://i18n//lib/i18n/exceptions.rb#52
|
|
2165
2165
|
def key; end
|
|
2166
2166
|
|
|
2167
|
-
# source://i18n
|
|
2167
|
+
# source://i18n//lib/i18n/exceptions.rb#59
|
|
2168
2168
|
def keys; end
|
|
2169
2169
|
|
|
2170
2170
|
# Returns the value of attribute locale.
|
|
2171
2171
|
#
|
|
2172
|
-
# source://i18n
|
|
2172
|
+
# source://i18n//lib/i18n/exceptions.rb#52
|
|
2173
2173
|
def locale; end
|
|
2174
2174
|
|
|
2175
|
-
# source://i18n
|
|
2175
|
+
# source://i18n//lib/i18n/exceptions.rb#65
|
|
2176
2176
|
def message; end
|
|
2177
2177
|
|
|
2178
2178
|
# Returns the value of attribute options.
|
|
2179
2179
|
#
|
|
2180
|
-
# source://i18n
|
|
2180
|
+
# source://i18n//lib/i18n/exceptions.rb#52
|
|
2181
2181
|
def options; end
|
|
2182
2182
|
|
|
2183
|
-
# source://i18n
|
|
2183
|
+
# source://i18n//lib/i18n/exceptions.rb#70
|
|
2184
2184
|
def to_exception; end
|
|
2185
2185
|
|
|
2186
|
-
# source://i18n
|
|
2186
|
+
# source://i18n//lib/i18n/exceptions.rb#65
|
|
2187
2187
|
def to_s; end
|
|
2188
2188
|
end
|
|
2189
2189
|
|
|
2190
|
-
# source://i18n
|
|
2190
|
+
# source://i18n//lib/i18n/exceptions.rb#50
|
|
2191
2191
|
I18n::MissingTranslation::Base::PERMITTED_KEYS = T.let(T.unsafe(nil), Array)
|
|
2192
2192
|
|
|
2193
|
-
# source://i18n
|
|
2193
|
+
# source://i18n//lib/i18n/exceptions.rb#78
|
|
2194
2194
|
class I18n::MissingTranslationData < ::I18n::ArgumentError
|
|
2195
2195
|
include ::I18n::MissingTranslation::Base
|
|
2196
2196
|
end
|
|
2197
2197
|
|
|
2198
|
-
# source://i18n
|
|
2198
|
+
# source://i18n//lib/i18n.rb#19
|
|
2199
2199
|
I18n::RESERVED_KEYS = T.let(T.unsafe(nil), Array)
|
|
2200
2200
|
|
|
2201
|
-
# source://i18n
|
|
2201
|
+
# source://i18n//lib/i18n/exceptions.rb#98
|
|
2202
2202
|
class I18n::ReservedInterpolationKey < ::I18n::ArgumentError
|
|
2203
2203
|
# @return [ReservedInterpolationKey] a new instance of ReservedInterpolationKey
|
|
2204
2204
|
#
|
|
2205
|
-
# source://i18n
|
|
2205
|
+
# source://i18n//lib/i18n/exceptions.rb#100
|
|
2206
2206
|
def initialize(key, string); end
|
|
2207
2207
|
|
|
2208
2208
|
# Returns the value of attribute key.
|
|
2209
2209
|
#
|
|
2210
|
-
# source://i18n
|
|
2210
|
+
# source://i18n//lib/i18n/exceptions.rb#99
|
|
2211
2211
|
def key; end
|
|
2212
2212
|
|
|
2213
2213
|
# Returns the value of attribute string.
|
|
2214
2214
|
#
|
|
2215
|
-
# source://i18n
|
|
2215
|
+
# source://i18n//lib/i18n/exceptions.rb#99
|
|
2216
2216
|
def string; end
|
|
2217
2217
|
end
|
|
2218
2218
|
|
|
2219
|
-
# source://i18n
|
|
2219
|
+
# source://i18n//lib/i18n/tests.rb#4
|
|
2220
2220
|
module I18n::Tests; end
|
|
2221
2221
|
|
|
2222
|
-
# source://i18n
|
|
2222
|
+
# source://i18n//lib/i18n/tests/localization.rb#3
|
|
2223
2223
|
module I18n::Tests::Localization
|
|
2224
2224
|
class << self
|
|
2225
2225
|
# @private
|
|
2226
2226
|
#
|
|
2227
|
-
# source://i18n
|
|
2227
|
+
# source://i18n//lib/i18n/tests/localization.rb#9
|
|
2228
2228
|
def included(base); end
|
|
2229
2229
|
end
|
|
2230
2230
|
end
|
|
2231
2231
|
|
|
2232
|
-
# source://i18n
|
|
2232
|
+
# source://i18n//lib/i18n/exceptions.rb#106
|
|
2233
2233
|
class I18n::UnknownFileType < ::I18n::ArgumentError
|
|
2234
2234
|
# @return [UnknownFileType] a new instance of UnknownFileType
|
|
2235
2235
|
#
|
|
2236
|
-
# source://i18n
|
|
2236
|
+
# source://i18n//lib/i18n/exceptions.rb#108
|
|
2237
2237
|
def initialize(type, filename); end
|
|
2238
2238
|
|
|
2239
2239
|
# Returns the value of attribute filename.
|
|
2240
2240
|
#
|
|
2241
|
-
# source://i18n
|
|
2241
|
+
# source://i18n//lib/i18n/exceptions.rb#107
|
|
2242
2242
|
def filename; end
|
|
2243
2243
|
|
|
2244
2244
|
# Returns the value of attribute type.
|
|
2245
2245
|
#
|
|
2246
|
-
# source://i18n
|
|
2246
|
+
# source://i18n//lib/i18n/exceptions.rb#107
|
|
2247
2247
|
def type; end
|
|
2248
2248
|
end
|
|
2249
2249
|
|
|
2250
|
-
# source://i18n
|
|
2250
|
+
# source://i18n//lib/i18n/exceptions.rb#114
|
|
2251
2251
|
class I18n::UnsupportedMethod < ::I18n::ArgumentError
|
|
2252
2252
|
# @return [UnsupportedMethod] a new instance of UnsupportedMethod
|
|
2253
2253
|
#
|
|
2254
|
-
# source://i18n
|
|
2254
|
+
# source://i18n//lib/i18n/exceptions.rb#116
|
|
2255
2255
|
def initialize(method, backend_klass, msg); end
|
|
2256
2256
|
|
|
2257
2257
|
# Returns the value of attribute backend_klass.
|
|
2258
2258
|
#
|
|
2259
|
-
# source://i18n
|
|
2259
|
+
# source://i18n//lib/i18n/exceptions.rb#115
|
|
2260
2260
|
def backend_klass; end
|
|
2261
2261
|
|
|
2262
2262
|
# Returns the value of attribute method.
|
|
2263
2263
|
#
|
|
2264
|
-
# source://i18n
|
|
2264
|
+
# source://i18n//lib/i18n/exceptions.rb#115
|
|
2265
2265
|
def method; end
|
|
2266
2266
|
|
|
2267
2267
|
# Returns the value of attribute msg.
|
|
2268
2268
|
#
|
|
2269
|
-
# source://i18n
|
|
2269
|
+
# source://i18n//lib/i18n/exceptions.rb#115
|
|
2270
2270
|
def msg; end
|
|
2271
2271
|
end
|
|
2272
2272
|
|
|
2273
|
-
# source://i18n
|
|
2273
|
+
# source://i18n//lib/i18n/utils.rb#4
|
|
2274
2274
|
module I18n::Utils
|
|
2275
2275
|
class << self
|
|
2276
|
-
# source://i18n
|
|
2276
|
+
# source://i18n//lib/i18n/utils.rb#18
|
|
2277
2277
|
def deep_merge(hash, other_hash, &block); end
|
|
2278
2278
|
|
|
2279
|
-
# source://i18n
|
|
2279
|
+
# source://i18n//lib/i18n/utils.rb#22
|
|
2280
2280
|
def deep_merge!(hash, other_hash, &block); end
|
|
2281
2281
|
|
|
2282
|
-
# source://i18n
|
|
2282
|
+
# source://i18n//lib/i18n/utils.rb#34
|
|
2283
2283
|
def deep_symbolize_keys(hash); end
|
|
2284
2284
|
|
|
2285
|
-
# source://i18n
|
|
2285
|
+
# source://i18n//lib/i18n/utils.rb#7
|
|
2286
2286
|
def except(hash, *keys); end
|
|
2287
2287
|
|
|
2288
2288
|
private
|
|
2289
2289
|
|
|
2290
|
-
# source://i18n
|
|
2290
|
+
# source://i18n//lib/i18n/utils.rb#43
|
|
2291
2291
|
def deep_symbolize_keys_in_object(value); end
|
|
2292
2292
|
end
|
|
2293
2293
|
end
|
|
2294
2294
|
|
|
2295
|
-
# source://i18n
|
|
2295
|
+
# source://i18n//lib/i18n/version.rb#4
|
|
2296
2296
|
I18n::VERSION = T.let(T.unsafe(nil), String)
|