Skip to content

Commit 9e9230c

Browse files
jebibotwobsoriano
andauthored
fix(ui,localizations): Localize API keys component table headers (#8462)
Co-authored-by: Robert Soriano <sorianorobertc@gmail.com>
1 parent 1001193 commit 9e9230c

5 files changed

Lines changed: 24 additions & 3 deletions

File tree

.changeset/blue-bats-count.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
'@clerk/localizations': patch
3+
'@clerk/shared': patch
4+
'@clerk/ui': patch
5+
---
6+
7+
Localize API keys table headers

packages/localizations/src/en-US.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ export const enUS: LocalizationResource = {
4141
formHint: 'Are you sure you want to delete this Secret key?',
4242
formTitle: 'Revoke "{{apiKeyName}}" secret key?',
4343
},
44+
tableHeader__name: 'Name',
45+
tableHeader__lastUsed: 'Last used',
46+
tableHeader__actions: 'Actions',
4447
},
4548
backButton: 'Back',
4649
badge__activePlan: 'Active',

packages/localizations/src/ko-KR.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ export const koKR: LocalizationResource = {
5252
formHint: '이 시크릿 키를 삭제할까요?',
5353
formTitle: '"{{apiKeyName}}" 시크릿 키를 폐기할까요?',
5454
},
55+
tableHeader__name: '이름',
56+
tableHeader__lastUsed: '마지막 사용',
57+
tableHeader__actions: '동작',
5558
},
5659
backButton: '돌아가기',
5760
badge__activePlan: '활성',

packages/shared/src/types/localization.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1304,6 +1304,9 @@ export type __internal_LocalizationResource = {
13041304
menuAction__revoke: LocalizationValue;
13051305
action__search: LocalizationValue;
13061306
action__add: LocalizationValue;
1307+
tableHeader__name: LocalizationValue;
1308+
tableHeader__lastUsed: LocalizationValue;
1309+
tableHeader__actions: LocalizationValue;
13071310
detailsTitle__emptyRow: LocalizationValue;
13081311
revokeConfirmation: {
13091312
formTitle: LocalizationValue<'apiKeyName'>;

packages/ui/src/components/APIKeys/ApiKeysTable.tsx

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,14 @@ export const APIKeysTable = ({
4040
>
4141
<Thead>
4242
<Tr>
43-
<Th>Name</Th>
44-
<Th>Last used</Th>
45-
{canManageAPIKeys && <Th sx={{ textAlign: 'end' }}>Actions</Th>}
43+
<Th localizationKey={localizationKeys('apiKeys.tableHeader__name')} />
44+
<Th localizationKey={localizationKeys('apiKeys.tableHeader__lastUsed')} />
45+
{canManageAPIKeys && (
46+
<Th
47+
localizationKey={localizationKeys('apiKeys.tableHeader__actions')}
48+
sx={{ textAlign: 'end' }}
49+
/>
50+
)}
4651
</Tr>
4752
</Thead>
4853
<Tbody>

0 commit comments

Comments
 (0)