Skip to content

Commit

Permalink
When multiple sponsorables, ensure @ each
Browse files Browse the repository at this point in the history
  • Loading branch information
kzu committed Sep 3, 2024
1 parent 7fdf3dd commit 076078a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions samples/dotnet/SponsorLink/DiagnosticsManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ SponsorStatus GetOrSetStatus(Func<ImmutableArray<AdditionalText>> getAdditionalF
// report unknown, either unparsed manifest or one with no expiration (which we never emit).
return Push(Diagnostic.Create(KnownDescriptors[SponsorStatus.Unknown], null,
properties: ImmutableDictionary.Create<string, string?>().Add(nameof(SponsorStatus), nameof(SponsorStatus.Unknown)),
Funding.Product, Sponsorables.Keys.Humanize(Resources.Or)),
Funding.Product, Sponsorables.Keys.Select(x => "@" + x).Humanize(Resources.Or)),
SponsorStatus.Unknown);
}
else if (exp < DateTime.Now)
Expand Down Expand Up @@ -201,7 +201,7 @@ SponsorStatus GetOrSetStatus(Func<ImmutableArray<AdditionalText>> getAdditionalF
isEnabledByDefault: true,
description: string.Format(CultureInfo.CurrentCulture, Resources.Unknown_Description,
string.Join(", ", sponsorable.Select(x => $"https://github.com/sponsors/{x}")),
string.Join(" ", sponsorable)),
string.Join(" ", sponsorable.Select(x => "@" + x))),
helpLinkUri: "https://github.com/devlooped#sponsorlink",
WellKnownDiagnosticTags.NotConfigurable, "CompilationEnd");

Expand Down
2 changes: 1 addition & 1 deletion samples/dotnet/SponsorLink/Resources.es-AR.resx
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@
Por favor considerá apoyar el proyecto patrocinando en {0} y ejecutando posteriormente 'sponsor sync {1}'.</value>
</data>
<data name="Unknown_Message" xml:space="preserve">
<value>Por favor considerá apoyar {0} patrocinando @{1} 🙏</value>
<value>Por favor considerá apoyar {0} patrocinando {1} 🙏</value>
</data>
<data name="Unknown_Title" xml:space="preserve">
<value>Estado de patrocinio desconocido</value>
Expand Down
2 changes: 1 addition & 1 deletion samples/dotnet/SponsorLink/Resources.es.resx
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@
Por favor considera apoyar el proyecto patrocinando en {0} y ejecutando posteriormente 'sponsor sync {1}'.</value>
</data>
<data name="Unknown_Message" xml:space="preserve">
<value>Por favor considere apoyar {0} patrocinando @{1} 🙏</value>
<value>Por favor considere apoyar {0} patrocinando {1} 🙏</value>
</data>
<data name="Unknown_Title" xml:space="preserve">
<value>Estado de patrocinio desconocido</value>
Expand Down
2 changes: 1 addition & 1 deletion samples/dotnet/SponsorLink/Resources.resx
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ Please consider supporting the project by sponsoring at {0} and running 'sponsor
<comment>Unknown sponsor description</comment>
</data>
<data name="Unknown_Message" xml:space="preserve">
<value>Please consider supporting {0} by sponsoring @{1} 🙏</value>
<value>Please consider supporting {0} by sponsoring {1} 🙏</value>
</data>
<data name="Unknown_Title" xml:space="preserve">
<value>Unknown sponsor status</value>
Expand Down

0 comments on commit 076078a

Please sign in to comment.