-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
21 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export default function assertUnreachable(value: never): never { | ||
throw new Error(`This value is unsupported ${value}`); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import type { Temporal } from "temporal-polyfill"; | ||
|
||
export const AGE = "Вік"; | ||
export const SOURCE_CODE = "вихідний код"; | ||
export const COPY_LABEL = "Натисніть, щоб скопіювати вік у буфер обміну"; | ||
export const BIRTH_DAY_FORMAT = (birthDay: Temporal.PlainDate) => | ||
`День народження: ${birthDay.toLocaleString()}`; | ||
export const AGE_COPIED = "Вік скопійовано в буфер обміну!"; | ||
export const AGE_COPY_FAILED = "Не вдалося скопіювати вік у буфер обміну!"; | ||
export const ENTER_BIRTHDAY = "Введіть свій день народження"; | ||
export const MOTIVATE = "Мотивуйте"; |