Skip to content

Commit

Permalink
add resource string
Browse files Browse the repository at this point in the history
  • Loading branch information
ryfu-msft committed Jul 23, 2021
1 parent b586f6f commit 58bf882
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/WingetCreateCLI/Commands/UpdateCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ public override async Task<bool> Execute()
}
else if (e is Octokit.RateLimitExceededException)
{
Logger.Error("GitHub api rate limit exceeded. To extend your rate limit, store or provide your GitHub token.");
Logger.ErrorLocalized(nameof(Resources.RateLimitExceeded_Message));
}

return false;
Expand Down
9 changes: 9 additions & 0 deletions src/WingetCreateCLI/Properties/Resources.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions src/WingetCreateCLI/Properties/Resources.resx
Original file line number Diff line number Diff line change
Expand Up @@ -658,6 +658,9 @@
<data name="InvalidGitHubToken_Message" xml:space="preserve">
<value>Token was invalid. Please generate a new GitHub token and try again.</value>
</data>
<data name="RateLimitExceeded_Message" xml:space="preserve">
<value>GitHub api rate limit exceeded. To extend your rate limit, store or provide your GitHub token.</value>
</data>
<data name="RepeatedUseWarning_Message" xml:space="preserve">
<value>Repeated use of this command could trigger a GitHub rate limit exceeded error.</value>
</data>
Expand Down

0 comments on commit 58bf882

Please sign in to comment.