Tweak language on API key list
This commit is contained in:
@@ -43,7 +43,7 @@ function ApiKeys() {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<Scene
|
<Scene
|
||||||
title={t("API Keys")}
|
title={t("API")}
|
||||||
icon={<CodeIcon />}
|
icon={<CodeIcon />}
|
||||||
actions={
|
actions={
|
||||||
<>
|
<>
|
||||||
@@ -60,7 +60,7 @@ function ApiKeys() {
|
|||||||
</>
|
</>
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
<Heading>{t("API Keys")}</Heading>
|
<Heading>{t("API")}</Heading>
|
||||||
<Text as="p" type="secondary">
|
<Text as="p" type="secondary">
|
||||||
<Trans
|
<Trans
|
||||||
defaults="Create personal API keys to authenticate with the API and programatically control
|
defaults="Create personal API keys to authenticate with the API and programatically control
|
||||||
@@ -80,7 +80,7 @@ function ApiKeys() {
|
|||||||
<PaginatedList
|
<PaginatedList
|
||||||
fetch={apiKeys.fetchPage}
|
fetch={apiKeys.fetchPage}
|
||||||
items={apiKeys.orderedData}
|
items={apiKeys.orderedData}
|
||||||
heading={<h2>{t("Generated Keys")}</h2>}
|
heading={<h2>{t("Personal keys")}</h2>}
|
||||||
renderItem={(apiKey: ApiKey) => (
|
renderItem={(apiKey: ApiKey) => (
|
||||||
<ApiKeyListItem
|
<ApiKeyListItem
|
||||||
key={apiKey.id}
|
key={apiKey.id}
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ import CopyToClipboard from "~/components/CopyToClipboard";
|
|||||||
import Flex from "~/components/Flex";
|
import Flex from "~/components/Flex";
|
||||||
import ListItem from "~/components/List/Item";
|
import ListItem from "~/components/List/Item";
|
||||||
import Text from "~/components/Text";
|
import Text from "~/components/Text";
|
||||||
|
import Time from "~/components/Time";
|
||||||
import useUserLocale from "~/hooks/useUserLocale";
|
import useUserLocale from "~/hooks/useUserLocale";
|
||||||
import ApiKeyMenu from "~/menus/ApiKeyMenu";
|
import ApiKeyMenu from "~/menus/ApiKeyMenu";
|
||||||
import { dateToExpiry } from "~/utils/date";
|
import { dateToExpiry } from "~/utils/date";
|
||||||
@@ -28,6 +29,7 @@ const ApiKeyListItem = ({ apiKey, isCopied, onCopy }: Props) => {
|
|||||||
|
|
||||||
const subtitle = (
|
const subtitle = (
|
||||||
<Text type={hasExpired ? "danger" : "tertiary"}>
|
<Text type={hasExpired ? "danger" : "tertiary"}>
|
||||||
|
{t(`Created`)} <Time dateTime={apiKey.createdAt} addSuffix /> ·{" "}
|
||||||
{apiKey.expiresAt
|
{apiKey.expiresAt
|
||||||
? dateToExpiry(apiKey.expiresAt, t, userLocale)
|
? dateToExpiry(apiKey.expiresAt, t, userLocale)
|
||||||
: t("No expiry")}
|
: t("No expiry")}
|
||||||
|
|||||||
@@ -766,9 +766,8 @@
|
|||||||
"No documents found for your search filters.": "No documents found for your search filters.",
|
"No documents found for your search filters.": "No documents found for your search filters.",
|
||||||
"Search Results": "Search Results",
|
"Search Results": "Search Results",
|
||||||
"API key copied to clipboard": "API key copied to clipboard",
|
"API key copied to clipboard": "API key copied to clipboard",
|
||||||
"API Keys": "API Keys",
|
|
||||||
"Create personal API keys to authenticate with the API and programatically control\n your workspace's data. API keys have the same permissions as your user account.\n For more details see the <em>developer documentation</em>.": "Create personal API keys to authenticate with the API and programatically control\n your workspace's data. API keys have the same permissions as your user account.\n For more details see the <em>developer documentation</em>.",
|
"Create personal API keys to authenticate with the API and programatically control\n your workspace's data. API keys have the same permissions as your user account.\n For more details see the <em>developer documentation</em>.": "Create personal API keys to authenticate with the API and programatically control\n your workspace's data. API keys have the same permissions as your user account.\n For more details see the <em>developer documentation</em>.",
|
||||||
"Generated Keys": "Generated Keys",
|
"Personal keys": "Personal keys",
|
||||||
"No expiry": "No expiry",
|
"No expiry": "No expiry",
|
||||||
"Copied": "Copied",
|
"Copied": "Copied",
|
||||||
"Revoking": "Revoking",
|
"Revoking": "Revoking",
|
||||||
|
|||||||
Reference in New Issue
Block a user