|
1 | | -// GENERATED CODE - DO NOT MODIFY BY HAND. |
2 | | -// Generated from lib/l10n/messages.i18n.yaml. |
| 1 | +// GENERATED FILE, do not edit! |
| 2 | +// ignore_for_file: annotate_overrides, non_constant_identifier_names, prefer_single_quotes, unused_element, unused_field, sort_constructors_first |
| 3 | +import 'package:i18n/i18n.dart' as i18n; |
| 4 | + |
| 5 | +String get _languageCode => 'en'; |
| 6 | +String _plural( |
| 7 | + int count, { |
| 8 | + String? zero, |
| 9 | + String? one, |
| 10 | + String? two, |
| 11 | + String? few, |
| 12 | + String? many, |
| 13 | + String? other, |
| 14 | +}) => i18n.plural( |
| 15 | + count, |
| 16 | + _languageCode, |
| 17 | + zero: zero, |
| 18 | + one: one, |
| 19 | + two: two, |
| 20 | + few: few, |
| 21 | + many: many, |
| 22 | + other: other, |
| 23 | +); |
| 24 | +String _ordinal( |
| 25 | + int count, { |
| 26 | + String? zero, |
| 27 | + String? one, |
| 28 | + String? two, |
| 29 | + String? few, |
| 30 | + String? many, |
| 31 | + String? other, |
| 32 | +}) => i18n.ordinal( |
| 33 | + count, |
| 34 | + _languageCode, |
| 35 | + zero: zero, |
| 36 | + one: one, |
| 37 | + two: two, |
| 38 | + few: few, |
| 39 | + many: many, |
| 40 | + other: other, |
| 41 | +); |
| 42 | +String _cardinal( |
| 43 | + int count, { |
| 44 | + String? zero, |
| 45 | + String? one, |
| 46 | + String? two, |
| 47 | + String? few, |
| 48 | + String? many, |
| 49 | + String? other, |
| 50 | +}) => i18n.cardinal( |
| 51 | + count, |
| 52 | + _languageCode, |
| 53 | + zero: zero, |
| 54 | + one: one, |
| 55 | + two: two, |
| 56 | + few: few, |
| 57 | + many: many, |
| 58 | + other: other, |
| 59 | +); |
3 | 60 |
|
4 | 61 | class Messages { |
5 | 62 | const Messages(); |
6 | | - |
| 63 | + String get locale => "en"; |
| 64 | + String get languageCode => "en"; |
7 | 65 | FeedbackMessages get feedback => FeedbackMessages(this); |
8 | 66 | ErrorMessages get error => ErrorMessages(this); |
9 | 67 | } |
10 | 68 |
|
11 | 69 | class FeedbackMessages { |
| 70 | + final Messages _parent; |
12 | 71 | const FeedbackMessages(this._parent); |
| 72 | + WarningFeedbackMessages get warning => WarningFeedbackMessages(this); |
| 73 | + SuggestionFeedbackMessages get suggestion => SuggestionFeedbackMessages(this); |
| 74 | +} |
13 | 75 |
|
14 | | - final Messages _parent; |
| 76 | +class WarningFeedbackMessages { |
| 77 | + final FeedbackMessages _parent; |
| 78 | + const WarningFeedbackMessages(this._parent); |
| 79 | + |
| 80 | + /// ```dart |
| 81 | + /// "Too weak" |
| 82 | + /// ``` |
| 83 | + String get tooWeak => """Too weak"""; |
15 | 84 |
|
16 | | - FeedbackWarningMessages get warning => FeedbackWarningMessages(_parent); |
17 | | - FeedbackSuggestionMessages get suggestion => |
18 | | - FeedbackSuggestionMessages(_parent); |
| 85 | + /// ```dart |
| 86 | + /// "Weak password" |
| 87 | + /// ``` |
| 88 | + String get weak => """Weak password"""; |
| 89 | + |
| 90 | + /// ```dart |
| 91 | + /// "Could be stronger" |
| 92 | + /// ``` |
| 93 | + String get medium => """Could be stronger"""; |
| 94 | + |
| 95 | + /// ```dart |
| 96 | + /// "Does not meet policy requirements" |
| 97 | + /// ``` |
| 98 | + String get policyNotMet => """Does not meet policy requirements"""; |
| 99 | + |
| 100 | + /// ```dart |
| 101 | + /// "Policy requirements partially met" |
| 102 | + /// ``` |
| 103 | + String get policyPartiallyMet => """Policy requirements partially met"""; |
| 104 | + |
| 105 | + /// ```dart |
| 106 | + /// "Almost there" |
| 107 | + /// ``` |
| 108 | + String get almostThere => """Almost there"""; |
19 | 109 | } |
20 | 110 |
|
21 | | -class ErrorMessages { |
22 | | - const ErrorMessages(this._parent); |
| 111 | +class SuggestionFeedbackMessages { |
| 112 | + final FeedbackMessages _parent; |
| 113 | + const SuggestionFeedbackMessages(this._parent); |
| 114 | + |
| 115 | + /// ```dart |
| 116 | + /// "Use a longer password" |
| 117 | + /// ``` |
| 118 | + String get useLonger => """Use a longer password"""; |
| 119 | + |
| 120 | + /// ```dart |
| 121 | + /// "Add another word or phrase" |
| 122 | + /// ``` |
| 123 | + String get addWordPhrase => """Add another word or phrase"""; |
| 124 | + |
| 125 | + /// ```dart |
| 126 | + /// "Mix more character types" |
| 127 | + /// ``` |
| 128 | + String get mixCharacterTypes => """Mix more character types"""; |
| 129 | + |
| 130 | + /// ```dart |
| 131 | + /// "Add length or another word" |
| 132 | + /// ``` |
| 133 | + String get addLengthOrWord => """Add length or another word"""; |
| 134 | + |
| 135 | + /// ```dart |
| 136 | + /// "Avoid common patterns" |
| 137 | + /// ``` |
| 138 | + String get avoidCommonPatterns => """Avoid common patterns"""; |
| 139 | + |
| 140 | + /// ```dart |
| 141 | + /// "Increase length slightly" |
| 142 | + /// ``` |
| 143 | + String get increaseLengthSlightly => """Increase length slightly"""; |
| 144 | + |
| 145 | + /// ```dart |
| 146 | + /// "Add another word or symbol" |
| 147 | + /// ``` |
| 148 | + String get addWordOrSymbol => """Add another word or symbol"""; |
| 149 | + |
| 150 | + /// ```dart |
| 151 | + /// "Increase length to at least $min" |
| 152 | + /// ``` |
| 153 | + String increaseLengthMin(int min) => """Increase length to at least $min"""; |
| 154 | + |
| 155 | + /// ```dart |
| 156 | + /// "Add an uppercase letter" |
| 157 | + /// ``` |
| 158 | + String get addUppercase => """Add an uppercase letter"""; |
23 | 159 |
|
| 160 | + /// ```dart |
| 161 | + /// "Add a lowercase letter" |
| 162 | + /// ``` |
| 163 | + String get addLowercase => """Add a lowercase letter"""; |
| 164 | + |
| 165 | + /// ```dart |
| 166 | + /// "Add a number" |
| 167 | + /// ``` |
| 168 | + String get addNumber => """Add a number"""; |
| 169 | + |
| 170 | + /// ```dart |
| 171 | + /// "Add a special character" |
| 172 | + /// ``` |
| 173 | + String get addSpecial => """Add a special character"""; |
| 174 | + |
| 175 | + /// ```dart |
| 176 | + /// "Use more variety for higher security" |
| 177 | + /// ``` |
| 178 | + String get useMoreVariety => """Use more variety for higher security"""; |
| 179 | +} |
| 180 | + |
| 181 | +class ErrorMessages { |
24 | 182 | final Messages _parent; |
| 183 | + const ErrorMessages(this._parent); |
25 | 184 |
|
| 185 | + /// ```dart |
| 186 | + /// "Unable to generate a strong password within $maxAttempts attempts." |
| 187 | + /// ``` |
26 | 188 | String maxAttemptsExceeded(int maxAttempts) => |
27 | | - 'Unable to generate a strong password within $maxAttempts attempts.'; |
| 189 | + """Unable to generate a strong password within $maxAttempts attempts."""; |
| 190 | + |
| 191 | + /// ```dart |
| 192 | + /// "maxGenerationAttempts must be greater than 0" |
| 193 | + /// ``` |
28 | 194 | String get maxGenerationAttemptsPositive => |
29 | | - 'maxGenerationAttempts must be greater than 0'; |
| 195 | + """maxGenerationAttempts must be greater than 0"""; |
| 196 | + |
| 197 | + /// ```dart |
| 198 | + /// "PasswordPolicy minLength cannot exceed maxLength" |
| 199 | + /// ``` |
30 | 200 | String get policyMinExceedsMax => |
31 | | - 'PasswordPolicy minLength cannot exceed maxLength'; |
32 | | - String passwordLengthMin(int min) => 'Password length must be at least $min'; |
| 201 | + """PasswordPolicy minLength cannot exceed maxLength"""; |
| 202 | + |
| 203 | + /// ```dart |
| 204 | + /// "Password length must be at least $min" |
| 205 | + /// ``` |
| 206 | + String passwordLengthMin(int min) => |
| 207 | + """Password length must be at least $min"""; |
| 208 | + |
| 209 | + /// ```dart |
| 210 | + /// "At least one character type must be selected" |
| 211 | + /// ``` |
33 | 212 | String get atLeastOneCharType => |
34 | | - 'At least one character type must be selected'; |
| 213 | + """At least one character type must be selected"""; |
| 214 | + |
| 215 | + /// ```dart |
| 216 | + /// "Selected character sets must not be empty" |
| 217 | + /// ``` |
35 | 218 | String get selectedCharSetsNotEmpty => |
36 | | - 'Selected character sets must not be empty'; |
37 | | - String get wordlistEmpty => 'Wordlist must not be empty'; |
38 | | - String get wordlistHasEmptyWords => 'Wordlist must not contain empty words'; |
39 | | - String get wordCountPositive => 'Word count must be greater than 0'; |
40 | | - String get wordCountExceedsWordlist => |
41 | | - 'Word count exceeds wordlist size when duplicates are disabled'; |
42 | | - String get characterPoolEmpty => 'Character pool cannot be empty'; |
43 | | - String get lengthNonNegative => 'Length must be non-negative'; |
44 | | - String get invalidFormat => 'invalid format'; |
45 | | - String get invalidLength => 'invalid length'; |
46 | | -} |
| 219 | + """Selected character sets must not be empty"""; |
47 | 220 |
|
48 | | -class FeedbackWarningMessages { |
49 | | - const FeedbackWarningMessages(this._parent); |
| 221 | + /// ```dart |
| 222 | + /// "Wordlist must not be empty" |
| 223 | + /// ``` |
| 224 | + String get wordlistEmpty => """Wordlist must not be empty"""; |
50 | 225 |
|
51 | | - final Messages _parent; |
| 226 | + /// ```dart |
| 227 | + /// "Wordlist must not contain empty words" |
| 228 | + /// ``` |
| 229 | + String get wordlistHasEmptyWords => |
| 230 | + """Wordlist must not contain empty words"""; |
52 | 231 |
|
53 | | - String get tooWeak => 'Too weak'; |
54 | | - String get weak => 'Weak password'; |
55 | | - String get medium => 'Could be stronger'; |
56 | | - String get policyNotMet => 'Does not meet policy requirements'; |
57 | | - String get policyPartiallyMet => 'Policy requirements partially met'; |
58 | | - String get almostThere => 'Almost there'; |
59 | | -} |
| 232 | + /// ```dart |
| 233 | + /// "Word count must be greater than 0" |
| 234 | + /// ``` |
| 235 | + String get wordCountPositive => """Word count must be greater than 0"""; |
60 | 236 |
|
61 | | -class FeedbackSuggestionMessages { |
62 | | - const FeedbackSuggestionMessages(this._parent); |
| 237 | + /// ```dart |
| 238 | + /// "Word count exceeds wordlist size when duplicates are disabled" |
| 239 | + /// ``` |
| 240 | + String get wordCountExceedsWordlist => |
| 241 | + """Word count exceeds wordlist size when duplicates are disabled"""; |
63 | 242 |
|
64 | | - final Messages _parent; |
| 243 | + /// ```dart |
| 244 | + /// "Character pool cannot be empty" |
| 245 | + /// ``` |
| 246 | + String get characterPoolEmpty => """Character pool cannot be empty"""; |
| 247 | + |
| 248 | + /// ```dart |
| 249 | + /// "Length must be non-negative" |
| 250 | + /// ``` |
| 251 | + String get lengthNonNegative => """Length must be non-negative"""; |
65 | 252 |
|
66 | | - String get useLonger => 'Use a longer password'; |
67 | | - String get addWordPhrase => 'Add another word or phrase'; |
68 | | - String get mixCharacterTypes => 'Mix more character types'; |
69 | | - String get addLengthOrWord => 'Add length or another word'; |
70 | | - String get avoidCommonPatterns => 'Avoid common patterns'; |
71 | | - String get increaseLengthSlightly => 'Increase length slightly'; |
72 | | - String get addWordOrSymbol => 'Add another word or symbol'; |
73 | | - String increaseLengthMin(int min) => 'Increase length to at least $min'; |
74 | | - String get addUppercase => 'Add an uppercase letter'; |
75 | | - String get addLowercase => 'Add a lowercase letter'; |
76 | | - String get addNumber => 'Add a number'; |
77 | | - String get addSpecial => 'Add a special character'; |
78 | | - String get useMoreVariety => 'Use more variety for higher security'; |
| 253 | + /// ```dart |
| 254 | + /// "invalid format" |
| 255 | + /// ``` |
| 256 | + String get invalidFormat => """invalid format"""; |
| 257 | + |
| 258 | + /// ```dart |
| 259 | + /// "invalid length" |
| 260 | + /// ``` |
| 261 | + String get invalidLength => """invalid length"""; |
79 | 262 | } |
| 263 | + |
| 264 | +Map<String, String> get messagesMap => { |
| 265 | + """feedback.warning.tooWeak""": """Too weak""", |
| 266 | + """feedback.warning.weak""": """Weak password""", |
| 267 | + """feedback.warning.medium""": """Could be stronger""", |
| 268 | + """feedback.warning.policyNotMet""": """Does not meet policy requirements""", |
| 269 | + """feedback.warning.policyPartiallyMet""": |
| 270 | + """Policy requirements partially met""", |
| 271 | + """feedback.warning.almostThere""": """Almost there""", |
| 272 | + """feedback.suggestion.useLonger""": """Use a longer password""", |
| 273 | + """feedback.suggestion.addWordPhrase""": """Add another word or phrase""", |
| 274 | + """feedback.suggestion.mixCharacterTypes""": """Mix more character types""", |
| 275 | + """feedback.suggestion.addLengthOrWord""": """Add length or another word""", |
| 276 | + """feedback.suggestion.avoidCommonPatterns""": """Avoid common patterns""", |
| 277 | + """feedback.suggestion.increaseLengthSlightly""": |
| 278 | + """Increase length slightly""", |
| 279 | + """feedback.suggestion.addWordOrSymbol""": """Add another word or symbol""", |
| 280 | + """feedback.suggestion.addUppercase""": """Add an uppercase letter""", |
| 281 | + """feedback.suggestion.addLowercase""": """Add a lowercase letter""", |
| 282 | + """feedback.suggestion.addNumber""": """Add a number""", |
| 283 | + """feedback.suggestion.addSpecial""": """Add a special character""", |
| 284 | + """feedback.suggestion.useMoreVariety""": |
| 285 | + """Use more variety for higher security""", |
| 286 | + """error.maxGenerationAttemptsPositive""": |
| 287 | + """maxGenerationAttempts must be greater than 0""", |
| 288 | + """error.policyMinExceedsMax""": |
| 289 | + """PasswordPolicy minLength cannot exceed maxLength""", |
| 290 | + """error.atLeastOneCharType""": |
| 291 | + """At least one character type must be selected""", |
| 292 | + """error.selectedCharSetsNotEmpty""": |
| 293 | + """Selected character sets must not be empty""", |
| 294 | + """error.wordlistEmpty""": """Wordlist must not be empty""", |
| 295 | + """error.wordlistHasEmptyWords""": |
| 296 | + """Wordlist must not contain empty words""", |
| 297 | + """error.wordCountPositive""": """Word count must be greater than 0""", |
| 298 | + """error.wordCountExceedsWordlist""": |
| 299 | + """Word count exceeds wordlist size when duplicates are disabled""", |
| 300 | + """error.characterPoolEmpty""": """Character pool cannot be empty""", |
| 301 | + """error.lengthNonNegative""": """Length must be non-negative""", |
| 302 | + """error.invalidFormat""": """invalid format""", |
| 303 | + """error.invalidLength""": """invalid length""", |
| 304 | +}; |
0 commit comments