Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

chore(site): update time until shutdown tooltip language#11964

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
coadler merged 3 commits intomainfromcolin/chorefixtimeuntilshutdowntooltiplanguage
Jan 31, 2024
Merged
Show file tree
Hide file tree
Changes fromall 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 numberDiff line numberDiff line change
Expand Up@@ -202,42 +202,42 @@ describe("ttlShutdownAt", () => {
[
"One hour --> helper text shows shutdown after 1 hour",
1,
`Your workspace will shut down 1 hour after its next start. We delay shutdown bythis time whenever we detect activity.`,
`Your workspace will shut down 1 hour after its next start. We delay shutdown by1 hour whenever we detect activity.`,
],
[
"Two hours --> helper text shows shutdown after 2 hours",
2,
`Your workspace will shut down 2 hours after its next start. We delay shutdown bythis time whenever we detect activity.`,
`Your workspace will shut down 2 hours after its next start. We delay shutdown by1 hour whenever we detect activity.`,
],
[
"24 hours --> helper text shows shutdown after 1 day",
24,
`Your workspace will shut down 1 day after its next start. We delay shutdown bythis time whenever we detect activity.`,
`Your workspace will shut down 1 day after its next start. We delay shutdown by1 hour whenever we detect activity.`,
],
[
"48 hours --> helper text shows shutdown after 2 days",
48,
`Your workspace will shut down 2 days after its next start. We delay shutdown bythis time whenever we detect activity.`,
`Your workspace will shut down 2 days after its next start. We delay shutdown by1 hour whenever we detect activity.`,
],
[
"1.2 hours --> helper text shows shutdown after 1 hour and 12 minutes",
1.2,
`Your workspace will shut down 1 hour and 12 minutes after its next start. We delay shutdown bythis time whenever we detect activity.`,
`Your workspace will shut down 1 hour and 12 minutes after its next start. We delay shutdown by1 hour whenever we detect activity.`,
],
[
"24.2 hours --> helper text shows shutdown after 1 day and 12 minutes",
24.2,
`Your workspace will shut down 1 day and 12 minutes after its next start. We delay shutdown bythis time whenever we detect activity.`,
`Your workspace will shut down 1 day and 12 minutes after its next start. We delay shutdown by1 hour whenever we detect activity.`,
],
[
"0.2 hours --> helper text shows shutdown after 12 minutes",
0.2,
`Your workspace will shut down 12 minutes after its next start. We delay shutdown bythis time whenever we detect activity.`,
`Your workspace will shut down 12 minutes after its next start. We delay shutdown by1 hour whenever we detect activity.`,
],
[
"48.258 hours --> helper text shows shutdown after 2 days and 15 minutes and 28 seconds",
48.258,
`Your workspace will shut down 2 days and 15 minutes and 28 seconds after its next start. We delay shutdown bythis time whenever we detect activity.`,
`Your workspace will shut down 2 days and 15 minutes and 28 seconds after its next start. We delay shutdown by1 hour whenever we detect activity.`,
],
])("%p", (_, ttlHours, expected) => {
expect(ttlShutdownAt(ttlHours)).toEqual(expected);
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -458,6 +458,6 @@ export const ttlShutdownAt = (formTTL: number): string => {
return `Your workspace will shut down ${formatDuration(
intervalToDuration({ start: 0, end: formTTL * 60 * 60 * 1000 }),
{ delimiter: " and " },
)} after its next start. We delay shutdown bythis time whenever we detect activity.`;
)} after its next start. We delay shutdown by1 hour whenever we detect activity.`;
}
};

[8]ページ先頭

©2009-2025 Movatter.jp