文件操作 - internal.d.ts
返回文件管理
返回主菜单
删除本文件
文件: /var/www/OLD/node_modules/@nuxtjs/i18n/dist/runtime/internal.d.ts
编辑文件内容
import { type CommonComposableOptions } from './utils.js'; import type { Locale } from 'vue-i18n'; import type { DetectBrowserLanguageOptions, LocaleObject } from '#internal-i18n-types'; import type { CookieRef, NuxtApp } from 'nuxt/app'; import type { I18nPublicRuntimeConfig } from '#internal-i18n-types'; import type { CompatRoute } from './types.js'; export declare function formatMessage(message: string): string; export declare function defineGetter<K extends string | number | symbol, V>(obj: Record<K, V>, key: K, val: V): void; type TailParameters<T> = T extends (first: CommonComposableOptions, ...rest: infer R) => unknown ? R : never; export declare function wrapComposable<F extends (common: CommonComposableOptions, ...args: never[]) => ReturnType<F>>(fn: F, common?: CommonComposableOptions): (...args: TailParameters<F>) => ReturnType<F>; /** * Parses locales provided from browser through `accept-language` header. * * @param input - Accept-Language header value. * @return An array of locale codes. Priority determined by order in array. */ export declare function parseAcceptLanguage(input: string): string[]; export declare function getBrowserLocale(): string | undefined; export declare function getI18nCookie(): CookieRef<string | undefined>; export declare function getLocaleCookie(cookieRef: CookieRef<string | undefined>, detect: false | DetectBrowserLanguageOptions, defaultLocale: string): string | undefined; export declare function setLocaleCookie(cookieRef: CookieRef<string | undefined>, locale: string, detect: false | DetectBrowserLanguageOptions): void; declare const enum DetectFailure { NOT_FOUND = "not_found_match", FIRST_ACCESS = "first_access_only", NO_REDIRECT_ROOT = "not_redirect_on_root", NO_REDIRECT_NO_PREFIX = "not_redirect_on_no_prefix", SSG_IGNORE = "detect_ignore_on_ssg", DISABLED = "disabled" } declare const enum DetectFrom { COOKIE = "cookie", NAVIGATOR_HEADER = "navigator_or_header", FALLBACK = "fallback" } type DetectBrowserLanguageFromResult = { locale: string; from?: DetectFrom; reason?: DetectFailure; }; export declare function detectBrowserLanguage(route: string | CompatRoute, localeCookie: string | undefined, locale?: Locale): DetectBrowserLanguageFromResult; export declare function getHost(): string | undefined; export declare function getLocaleDomain(locales: LocaleObject[], strategy: string, route: string | CompatRoute): string; export declare function getDomainFromLocale(localeCode: Locale): string | undefined; export declare const runtimeDetectBrowserLanguage: (opts?: I18nPublicRuntimeConfig) => false | DetectBrowserLanguageOptions; /** * Removes default routes depending on domain */ export declare function setupMultiDomainLocales(nuxtContext: NuxtApp, defaultLocaleDomain: string): void; /** * Returns default locale for the current domain, returns `defaultLocale` by default */ export declare function getDefaultLocaleForDomain(nuxtContext: NuxtApp): string; export {};
修改文件时间
将文件时间修改为当前时间的前一年
删除文件