Skip to content

Commit

Permalink
Fix widget manifest localization (#423)
Browse files Browse the repository at this point in the history
  • Loading branch information
dkbennett authored Aug 1, 2024
1 parent 7692155 commit 459610e
Show file tree
Hide file tree
Showing 4 changed files with 117 additions and 69 deletions.
46 changes: 23 additions & 23 deletions src/GitHubExtensionServer/Package-Can.appxmanifest
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
<CreateInstance ClassId="E8778523-0D5F-478F-8AC3-1467928BDEF7" />
</Activation>
<Definitions>
<Definition Id="GitHub_Issues" DisplayName="Issues" Description="List of issues in a GitHub repository." IsCustomizable="true">
<Definition Id="GitHub_Issues" DisplayName="ms-resource:Widget_DisplayName_Issues" Description="ms-resource:Widget_Description_Issues" IsCustomizable="true">
<Capabilities>
<Capability>
<Size Name="medium" />
Expand All @@ -90,27 +90,27 @@
<Icon Path="Widgets\Assets\GitHubLogo_Light.jpg" />
</Icons>
<Screenshots>
<Screenshot Path="Widgets\Assets\IssuesScreenshotLight.png" DisplayAltText="Issues widget preview image" />
<Screenshot Path="Widgets\Assets\IssuesScreenshotLight.png" DisplayAltText="ms-resource:Widget_ScreenshotAltDisplay_Issues" />
</Screenshots>
<DarkMode>
<Icons>
<Icon Path="Widgets\Assets\GitHubLogo_Dark.png" />
</Icons>
<Screenshots>
<Screenshot Path="Widgets\Assets\IssuesScreenshotDark.png" DisplayAltText="Issues widget preview image" />
<Screenshot Path="Widgets\Assets\IssuesScreenshotDark.png" DisplayAltText="ms-resource:Widget_ScreenshotAltDisplay_Issues" />
</Screenshots>
</DarkMode>
<LightMode>
<Icons>
<Icon Path="Widgets\Assets\GitHubLogo_Light.png" />
</Icons>
<Screenshots>
<Screenshot Path="Widgets\Assets\IssuesScreenshotLight.png" DisplayAltText="Issues widget preview image" />
<Screenshot Path="Widgets\Assets\IssuesScreenshotLight.png" DisplayAltText="ms-resource:Widget_ScreenshotAltDisplay_Issues" />
</Screenshots>
</LightMode>
</ThemeResources>
</Definition>
<Definition Id="GitHub_PullRequests" DisplayName="Pull requests" Description="List of open pull requests in a GitHub repository." IsCustomizable="true">
<Definition Id="GitHub_PullRequests" DisplayName="ms-resource:Widget_DisplayName_PullRequests" Description="ms-resource:Widget_Description_PullRequests" IsCustomizable="true">
<Capabilities>
<Capability>
<Size Name="medium" />
Expand All @@ -124,27 +124,27 @@
<Icon Path="Widgets\Assets\GitHubLogo_Light.jpg" />
</Icons>
<Screenshots>
<Screenshot Path="Widgets\Assets\PullRequestsScreenshotLight.png" DisplayAltText="Pull Requests widget preview image" />
<Screenshot Path="Widgets\Assets\PullRequestsScreenshotLight.png" DisplayAltText="ms-resource:Widget_ScreenshotAltDisplay_PullRequests" />
</Screenshots>
<DarkMode>
<Icons>
<Icon Path="Widgets\Assets\GitHubLogo_Dark.png" />
</Icons>
<Screenshots>
<Screenshot Path="Widgets\Assets\PullRequestsScreenshotDark.png" DisplayAltText="Pull Requests widget preview image" />
<Screenshot Path="Widgets\Assets\PullRequestsScreenshotDark.png" DisplayAltText="ms-resource:Widget_ScreenshotAltDisplay_PullRequests" />
</Screenshots>
</DarkMode>
<LightMode>
<Icons>
<Icon Path="Widgets\Assets\GitHubLogo_Light.png" />
</Icons>
<Screenshots>
<Screenshot Path="Widgets\Assets\PullRequestsScreenshotLight.png" DisplayAltText="Pull Requests widget preview image" />
<Screenshot Path="Widgets\Assets\PullRequestsScreenshotLight.png" DisplayAltText="ms-resource:Widget_ScreenshotAltDisplay_PullRequests" />
</Screenshots>
</LightMode>
</ThemeResources>
</Definition>
<Definition Id="GitHub_MentionedIns" DisplayName="Mentioned me" Description="List of issues and pull requests the user is mentioned in in a GitHub repository." IsCustomizable="true">
<Definition Id="GitHub_MentionedIns" DisplayName="ms-resource:Widget_DisplayName_MentionedIn" Description="ms-resource:Widget_Description_MentionedIn" IsCustomizable="true">
<Capabilities>
<Capability>
<Size Name="medium" />
Expand All @@ -158,27 +158,27 @@
<Icon Path="Widgets\Assets\GitHubLogo_Light.jpg" />
</Icons>
<Screenshots>
<Screenshot Path="Widgets\Assets\MentionedInScreenshotLight.png" DisplayAltText="Mentioned In widget preview image" />
<Screenshot Path="Widgets\Assets\MentionedInScreenshotLight.png" DisplayAltText="ms-resource:Widget_ScreenshotAltDisplay_MentionedIn" />
</Screenshots>
<DarkMode>
<Icons>
<Icon Path="Widgets\Assets\GitHubLogo_Dark.png" />
</Icons>
<Screenshots>
<Screenshot Path="Widgets\Assets\MentionedInScreenshotDark.png" DisplayAltText="Mentioned In widget preview image" />
<Screenshot Path="Widgets\Assets\MentionedInScreenshotDark.png" DisplayAltText="ms-resource:Widget_ScreenshotAltDisplay_MentionedIn" />
</Screenshots>
</DarkMode>
<LightMode>
<Icons>
<Icon Path="Widgets\Assets\GitHubLogo_Light.png" />
</Icons>
<Screenshots>
<Screenshot Path="Widgets\Assets\MentionedInScreenshotLight.png" DisplayAltText="Mentioned In widget preview image" />
<Screenshot Path="Widgets\Assets\MentionedInScreenshotLight.png" DisplayAltText="ms-resource:Widget_ScreenshotAltDisplay_MentionedIn" />
</Screenshots>
</LightMode>
</ThemeResources>
</Definition>
<Definition Id="GitHub_Assigneds" DisplayName="Assigned to me" Description="List of pull requests and issues assigned to the user in a GitHub repository." IsCustomizable="true">
<Definition Id="GitHub_Assigneds" DisplayName="ms-resource:Widget_DisplayName_AssignedToMe" Description="ms-resource:Widget_Description_AssignedToMe" IsCustomizable="true">
<Capabilities>
<Capability>
<Size Name="medium" />
Expand All @@ -192,27 +192,27 @@
<Icon Path="Widgets\Assets\GitHubLogo_Light.jpg" />
</Icons>
<Screenshots>
<Screenshot Path="Widgets\Assets\AssignedToMeScreenshotLight.png" DisplayAltText="Assigned To Me widget preview image" />
<Screenshot Path="Widgets\Assets\AssignedToMeScreenshotLight.png" DisplayAltText="ms-resource:Widget_ScreenshotAltDisplay_AssignedToMe" />
</Screenshots>
<DarkMode>
<Icons>
<Icon Path="Widgets\Assets\GitHubLogo_Dark.png" />
</Icons>
<Screenshots>
<Screenshot Path="Widgets\Assets\AssignedToMeScreenshotDark.png" DisplayAltText="Assigned To Me widget preview image" />
<Screenshot Path="Widgets\Assets\AssignedToMeScreenshotDark.png" DisplayAltText="ms-resource:Widget_ScreenshotAltDisplay_AssignedToMe" />
</Screenshots>
</DarkMode>
<LightMode>
<Icons>
<Icon Path="Widgets\Assets\GitHubLogo_Light.png" />
</Icons>
<Screenshots>
<Screenshot Path="Widgets\Assets\AssignedToMeScreenshotLight.png" DisplayAltText="Assigned To Me widget preview image" />
<Screenshot Path="Widgets\Assets\AssignedToMeScreenshotLight.png" DisplayAltText="ms-resource:Widget_ScreenshotAltDisplay_AssignedToMe" />
</Screenshots>
</LightMode>
</ThemeResources>
</Definition>
<Definition Id="GitHub_Reviews" DisplayName="Review requested" Description="List of pull requests where the user is requested for a review." IsCustomizable="false">
<Definition Id="GitHub_Reviews" DisplayName="ms-resource:Widget_DisplayName_Reviews" Description="ms-resource:Widget_Description_Reviews" IsCustomizable="false">
<Capabilities>
<Capability>
<Size Name="medium" />
Expand All @@ -226,22 +226,22 @@
<Icon Path="Widgets\Assets\GitHubLogo_Light.jpg" />
</Icons>
<Screenshots>
<Screenshot Path="Widgets\Assets\ReviewRequestedScreenshotLight.png" DisplayAltText="Review Requested widget preview image" />
<Screenshot Path="Widgets\Assets\ReviewRequestedScreenshotLight.png" DisplayAltText="ms-resource:Widget_ScreenshotAltDisplay_Reviews" />
</Screenshots>
<DarkMode>
<Icons>
<Icon Path="Widgets\Assets\GitHubLogo_Dark.png" />
</Icons>
<Screenshots>
<Screenshot Path="Widgets\Assets\ReviewRequestedScreenshotDark.png" DisplayAltText="Review Requested widget preview image" />
<Screenshot Path="Widgets\Assets\ReviewRequestedScreenshotDark.png" DisplayAltText="ms-resource:Widget_ScreenshotAltDisplay_Reviews" />
</Screenshots>
</DarkMode>
<LightMode>
<Icons>
<Icon Path="Widgets\Assets\GitHubLogo_Light.png" />
</Icons>
<Screenshots>
<Screenshot Path="Widgets\Assets\ReviewRequestedScreenshotLight.png" DisplayAltText="Review Requested widget preview image" />
<Screenshot Path="Widgets\Assets\ReviewRequestedScreenshotLight.png" DisplayAltText="ms-resource:Widget_ScreenshotAltDisplay_Reviews" />
</Screenshots>
</LightMode>
</ThemeResources>
Expand All @@ -260,22 +260,22 @@
<Icon Path="Widgets\Assets\GitHubLogo_Light.jpg" />
</Icons>
<Screenshots>
<Screenshot Path="Widgets\Assets\ReleasesScreenshotLight.png" DisplayAltText="Releases widget preview image" />
<Screenshot Path="Widgets\Assets\ReleasesScreenshotLight.png" DisplayAltText="ms-resource:Widget_ScreenshotAltDisplay_Releases" />
</Screenshots>
<DarkMode>
<Icons>
<Icon Path="Widgets\Assets\GitHubLogo_Dark.png" />
</Icons>
<Screenshots>
<Screenshot Path="Widgets\Assets\ReleasesScreenshotDark.png" DisplayAltText="Releases widget preview image" />
<Screenshot Path="Widgets\Assets\ReleasesScreenshotDark.png" DisplayAltText="ms-resource:Widget_ScreenshotAltDisplay_Releases" />
</Screenshots>
</DarkMode>
<LightMode>
<Icons>
<Icon Path="Widgets\Assets\GitHubLogo_Light.png" />
</Icons>
<Screenshots>
<Screenshot Path="Widgets\Assets\ReleasesScreenshotLight.png" DisplayAltText="Releases widget preview image" />
<Screenshot Path="Widgets\Assets\ReleasesScreenshotLight.png" DisplayAltText="ms-resource:Widget_ScreenshotAltDisplay_Releases" />
</Screenshots>
</LightMode>
</ThemeResources>
Expand Down
Loading

0 comments on commit 459610e

Please sign in to comment.