Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,6 @@
},
"tooltip": "اضغط {{hotkey}} للتمرير إلى {{direction}}"
},
"seconds": "ثواني",
"security": {
"actions": "إجراءات",
"permissions": "صلاحيات",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,6 @@
},
"tooltip": "Prem {{hotkey}} per desplaçar-te cap a {{direction}}"
},
"seconds": "{{count}}s",
"security": {
"actions": "Accions",
"permissions": "Permisos",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,6 @@
},
"tooltip": "Tastenkombination {{hotkey}} zum scrollen nach {{direction}}"
},
"seconds": "{{count}}s",
"security": {
"actions": "Aktionen",
"permissions": "Berechtigungen",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,6 @@
},
"tooltip": "Press {{hotkey}} to scroll to {{direction}}"
},
"seconds": "{{count}}s",
"security": {
"actions": "Actions",
"permissions": "Permissions",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,6 @@
},
"tooltip": "Presiona {{hotkey}} para desplazarte a {{direction}}"
},
"seconds": "{{count}}s",
"security": {
"actions": "Acciones",
"permissions": "Permisos",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,6 @@
},
"tooltip": "Appuyez sur {{hotkey}} pour faire défiler vers le {{direction}}"
},
"seconds": "{{count}}s",
"security": {
"actions": "Actions",
"permissions": "Permissions",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,6 @@
},
"tooltip": "לחץ {{hotkey}} לגלילה ל{{direction}}"
},
"seconds": "{{count}} שניות",
"security": {
"actions": "פעולות",
"permissions": "הרשאות",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,6 @@
},
"tooltip": "{{direction}} तक स्क्रॉल करने के लिए {{hotkey}} दबाएं"
},
"seconds": "{{count}}सेकंड",
"security": {
"actions": "क्रियाएं",
"permissions": "अनुमतियां",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,6 @@
},
"tooltip": "Nyomd meg a(z) {{hotkey}} gombot a görgetéshez ide: {{direction}}"
},
"seconds": "{{count}} mp",
"security": {
"actions": "Műveletek",
"permissions": "Jogosultságok",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,6 @@
},
"tooltip": "Premi {{hotkey}} per scorrere a {{direction}}"
},
"seconds": "{{count}}s",
"security": {
"actions": "Azioni",
"permissions": "Permessi",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,6 @@
},
"tooltip": "{{hotkey}}를 눌러 {{direction}}로 스크롤"
},
"seconds": "{{count}}초",
"security": {
"actions": "작업",
"permissions": "권한",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,6 @@
},
"tooltip": "Druk op {{hotkey}} om te scrollen naar {{direction}}"
},
"seconds": "{{count}}s",
"security": {
"actions": "Acties",
"permissions": "Permissies",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,6 @@
},
"tooltip": "Naciśnij {{hotkey}}, aby przewinąć do {{direction}}"
},
"seconds": "{{count}}s",
"security": {
"actions": "Akcje",
"permissions": "Uprawnienia",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,6 @@
},
"tooltip": "Pressione {{hotkey}} para rolar para {{direction}}"
},
"seconds": "{{count}}s",
"security": {
"actions": "Ações",
"permissions": "Permissões",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,6 @@
},
"tooltip": "{{direction}} kaydırmak için {{hotkey}} tuşuna basın"
},
"seconds": "{{count}}sn",
"security": {
"actions": "Eylemler",
"permissions": "İzinler",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,6 @@
},
"tooltip": "按 {{hotkey}} 滚动到{{direction}}"
},
"seconds": "{{count}} 秒",
"security": {
"actions": "操作",
"permissions": "权限",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,6 @@
},
"tooltip": "按 {{hotkey}} 捲動到{{direction}}"
},
"seconds": "{{count}} 秒",
"security": {
"actions": "操作",
"permissions": "權限",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,15 @@
* under the License.
*/
import { Text, type TextProps } from "@chakra-ui/react";
import { useTranslation } from "react-i18next";

import { renderDuration } from "src/utils";

type Props = {
readonly duration: number;
} & TextProps;

export const DurationTick = ({ duration, ...rest }: Props) => {
const { t: translate } = useTranslation();

return (
<Text color="border.emphasized" fontSize="xs" position="absolute" right={1} whiteSpace="nowrap" {...rest}>
{translate("seconds", { count: Math.floor(duration) })}
</Text>
);
};
export const DurationTick = ({ duration, ...rest }: Props) => (
<Text color="border.emphasized" fontSize="xs" position="absolute" right={1} whiteSpace="nowrap" {...rest}>
{renderDuration(duration)}
</Text>
);
Loading