UNPKG

@osaedasia/oresume

Version:

A user-friendly library for generating complete Single Page Applications (SPAs)

30 lines (29 loc) 948 B
import { ISO639_1 } from "../definitions/types/Country"; import { HTMLObject } from "../definitions/interfaces/HTMLObject"; /** * Represents a URL with language-specific localization capabilities. * Implements HTMLObject to provide HTML string representation. * @implements {HTMLObject} */ export declare class LocalizedUrl implements HTMLObject { /** * The base URL containing scheme, domain, and port. */ readonly origin: URL; /** * The ISO 639-1 language code for localization. */ languageCode: ISO639_1; /** * Creates a new LocalizedUrl instance. * @param {URL} origin The base URL to be localized. * @param {ISO639_1} languageCode The ISO 639-1 language code. */ constructor(origin: URL, languageCode: ISO639_1); /** * @returns {URL} A normalized URL combining the origin and language code. */ get url(): URL; /** @inheritDoc */ toHtml(): string; }