Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactored PluralLocalizationFormatter #209

Merged

Conversation

axunonb
Copy link
Member

@axunonb axunonb commented Oct 16, 2021

Refactored PluralLocalizationFormatter

  • Constructor with string argument for default language is obsolete.
  • Property DefaultTwoLetterISOLanguageName is obsolete.
  • Culture is now determined in this sequence (same as with LocalizationFormatter):

    a) Get the culture from the FormattingInfo.FormatterOptions.

    b) Get the culture from the IFormatProvider argument (which may be a CultureInfo) to SmartFormatter.Format(IFormatProvider, string, object?[])

    c) The CultureInfo.CurrentUICulture

axunonb and others added 30 commits April 17, 2021 10:25
@axunonb axunonb merged commit 07c643c into axuno:version/v3.0 Oct 16, 2021
@axunonb axunonb deleted the refactor-plurallocalizationformatter branch October 16, 2021 10:50
axunonb added a commit to axunonb/SmartFormat that referenced this pull request Mar 10, 2022
* Constructor with string argument for default language is obsolete.
* Property `DefaultTwoLetterISOLanguageName` is obsolete.
* Culture is now determined in this sequence (same as with `LocalizationFormatter`):
  a) Get the culture from the `FormattingInfo.FormatterOptions`.
  b) Get the culture from the `IFormatProvider` argument (which may be a `CultureInfo`) to `SmartFormatter.Format(IFormatProvider, string, object?[])`
  c) The CultureInfo.CurrentUICulture
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant