-
Notifications
You must be signed in to change notification settings - Fork 64
Add IStringLocalizer.GetAllStrings method #22
Conversation
foreach (var name in resourceNames) | ||
{ | ||
var value = GetStringSafely(name, culture); | ||
yield return new LocalizedString(name, value ?? name, resourceNotFound: value == null); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
According to the function definition https://github.com/aspnet/Localization/blob/dev/src/Microsoft.Framework.Localization.Abstractions/LocalizedString.cs#L30 I don't think that we need the named parameter resourceNotFound
while you didn't change the order of the parameters
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We always tend to name args when we pass in bool
or null
values.
I think we should do #23 in this PR. |
@hishamco that's what the extension method achieves https://github.com/aspnet/Localization/pull/22/files#diff-fd6180fc301d656a5a25bc6d20b88a50R38 |
👍 |
54540f9
to
f830a15
Compare
/// Gets all string resources including those for ancestor cultures. | ||
/// </summary> | ||
/// <param name="stringLocalizer">The <see cref="IStringLocalizer"/>.</param> | ||
/// <returns></returns> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<returns>
should have some text. May be "The strings" like above?
|
1 similar comment
|
20c6d18
to
1a47d19
Compare
@davidfowl @muratg
#18 #23