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

Add ITranslationProvider.LoadTranslationsAsync() #15886

Open
wants to merge 17 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Apply suggestions from code review
Co-authored-by: Zoltán Lehóczky <[email protected]>
  • Loading branch information
hishamco and Piedone authored Apr 26, 2024
commit 0041fbf7f936191b3640359140bdd0fe5656bf57
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public interface ITranslationProvider
/// </summary>
/// <param name="cultureName">The culture name.</param>
/// <param name="dictionary">The <see cref="CultureDictionary"/> that will contains all loaded translations.</param>
[Obsolete("This method has been deprectaed, please use LoadTranslationsAsync instead.")]
[Obsolete("This method has been deprecated, please use LoadTranslationsAsync instead.")]
void LoadTranslations(string cultureName, CultureDictionary dictionary)
=> LoadTranslationsAsync(cultureName, dictionary).GetAwaiter().GetResult();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public class PoParser
/// </summary>
/// <param name="reader">The <see cref="TextReader"/>.</param>
/// <returns>A list of culture records.</returns>
[Obsolete("This methos has been deprecated, please use ParseAsync instead.")]
[Obsolete("This method has been deprecated, please use ParseAsync instead.")]
public IEnumerable<CultureDictionaryRecord> Parse(TextReader reader) => ParseAsync(reader).GetAwaiter().GetResult();

/// <summary>
Expand Down