Reference · Flags a page registers itself
customCreditLinefunction
Whose flags are on a page, as one line: each set that is on and holds a flag, with its credit and its licence beside it (and "non-commercial" or "share-alike" where the set says so), in English or Japanese.
Import it
import { customCreditLine } from "@johnmorrisdotca/hata/custom";
Definition
function customCreditLine(language?: "en" | "ja"): string
Parameters
| Name | Type | Description |
|---|---|---|
language (optional) | "en" | "ja" |
|
Returns
string
The line, or an empty text when no custom flag is on.
Examples
import { customCreditLine } from "@johnmorrisdotca/hata/custom";
console.log(customCreditLine("ja") === ""); // true when nothing is registeredtrueWhat it prints (run when this page was built)