Skip to content
This repository was archived by the owner on Nov 29, 2018. It is now read-only.
This repository was archived by the owner on Nov 29, 2018. It is now read-only.

IStringLocalizer.GetAllStrings should support an arg to specify culture walk behavior #23

@DamianEdwards

Description

@DamianEdwards

Depends on #18

Currently, IStringLocalizer.GetAllStrings will return the union of all strings for the current culture and all ancestors of the current culture. E.g. if the current culture is "en-US" and it contains a single string "Hello", and the culture "en" contains a single string "Goodbyte", the call to IStringLocalizer.GetAllStrings for "en-US" will return both the "Hello" and "Goodbye" strings.

This behavior may not always be desirable (e.g. it differs to how ResourceManager.GetResourceSet works). As such, we should support a way to specify the behavior during the call, e.g. GetAllStrings(includeAncestorCultures: false);

The default behavior should still be to include strings from ancestor cultures.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions