Skip to content

Commit 89a6000

Browse files
committed
fix: apply copilot suggestions
1 parent 63274a1 commit 89a6000

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

website/src/components/templates/FuncTemplate.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,6 @@ function ScopedDefinitions({
103103
// Currently, the scope has at most two levels.
104104
// Therefore, it is sufficient to only annotate the direct `parent`.
105105
<>
106-
<code>{parent.name}</code>
107106
<Translation translationKey="definitionOf" name={parent.name} />
108107
</>
109108
) : (

website/src/components/ui/Tooltip.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,9 @@ export const Tooltip: FC<TooltipProps> = ({ kind }) => {
101101
<button
102102
type="button"
103103
class="w-4 h-4 hover:bg-black/10 rounded focus:outline-none focus:ring-2 focus:ring-blue-500 cursor-pointer"
104-
aria-label={`${content.label}${translation.showInformation({ name: String(content.label) })}`}
104+
aria-label={translation.showInformation({
105+
name: String(content.label),
106+
})}
105107
tabindex={0}
106108
{...{ "x-on:click": "helpOpen = true" }}
107109
{...{ "x-on:keydown.enter": "helpOpen = true" }}

website/src/translation.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@ type TranslationKey =
3232
| "tableOfContents"
3333
| "untranslated"
3434
| "untranslatedMessage"
35-
| "tableOfContents"
36-
| "tableOfContents"
3735
| "document"
3836
| "langVersion"
3937
| "elementFunction"
@@ -53,7 +51,6 @@ type TranslationKey =
5351
| "partiallyTranslatedMessage"
5452
| "translated"
5553
| "translatedMessage"
56-
| "contextFunctionDescription"
5754
| "siteNoticeBannerTitle"
5855
| "tutorial"
5956
| "tutorialDescription"
@@ -213,7 +210,7 @@ export const Translation: FC<TranslationProps> = (props) => {
213210
return (
214211
<>
215212
設定可能引数は、<code>set</code>
216-
ルールを用いて設定でき、それ以降で使用するデフォルト値を変更できます。,
213+
ルールを用いて設定でき、それ以降で使用するデフォルト値を変更できます。
217214
</>
218215
);
219216
case "siteNoticeBannerTitle":

0 commit comments

Comments
 (0)