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.

Design changes to known/allowed culture list and cache #111

@Eilon

Description

@Eilon
  1. Have default allowed culture list be empty
    • Make setting the default culture mandatory when using AddLocalization
    • If you want to support a specific set of cultures, pass in a default culture and also a set of allowed cultures
  2. The loc middleware upon seeing the request’s desired cultures will compare it against the list of SupportedXyz cultures for an exact match (case insensitive). If it’s not any of those, fall back to the default culture
  3. Rename AllowedXyz to SupportedXyz for lists of cultures
  4. Keep CultureInfoCache and use it for all CultureInfo retrieval, including registering “unknown” cultures. The list of Known Cultures will go away.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions