文件操作 - utils.d.ts
返回文件管理
返回主菜单
删除本文件
文件: /var/www/OLD/node_modules/@nuxtjs/i18n/dist/runtime/routing/utils.d.ts
编辑文件内容
import type { LocaleObject, BaseUrlResolveHandler, I18nPublicRuntimeConfig } from '#internal-i18n-types'; import type { Locale } from 'vue-i18n'; import type { CompatRoute } from '../types.js'; export declare function getNormalizedLocales(locales: Locale[] | LocaleObject[]): LocaleObject[]; export declare function getRouteName(routeName?: string | symbol | null): string; export declare function getLocaleRouteName(routeName: symbol | string | null | undefined, locale: Locale, { defaultLocale, strategy, routesNameSeparator, defaultLocaleRouteNameSuffix, differentDomains }: I18nPublicRuntimeConfig): string; /** * Resolve base url * * @param baseUrl - A base url to resolve on SEO and domain. if you want to resolve with dynamically, you can spacify {@link BaseUrlResolveHandler} * @param context - A context to resolve base url, if you want to resolve base url with {@link BaseUrlResolveHandler} * * @returns A resolved base url */ export declare function resolveBaseUrl<Context = unknown>(baseUrl: string | BaseUrlResolveHandler<Context>, context: Context): string; /** * The browser locale info * * @remarks * This type is used by {@link FindBrowserLocaleOptions#sorter | sorter} in {@link findBrowserLocale} function */ interface BrowserLocale { /** * The locale code, such as BCP 47 (e.g `en-US`), or `ja` */ code: string; /** * The score number * * @remarks * The score number that is used by `sorter` of {@link FindBrowserLocaleOptions} */ score: number; } /** * The target locale info * * @remarks * This type is used by {@link BrowserLocaleMatcher} first argument */ type TargetLocale = { code: string; language: string; }; /** * The browser locale matcher * * @remarks * This matcher is used by {@link findBrowserLocale} function * * @param locales - The target {@link LocaleObject | locale} list * @param browserLocales - The locale code list that is used in browser * * @returns The matched {@link BrowserLocale | locale info} */ type BrowserLocaleMatcher = (locales: TargetLocale[], browserLocales: string[]) => BrowserLocale[]; type LocaleComparer = (a: BrowserLocale, b: BrowserLocale) => number; /** * Find the browser locale * * @param locales - The target {@link LocaleObject} list * @param browserLocales - The locale code list that is used in browser * @param options - The options for {@link findBrowserLocale} function * * @returns The matched the locale code */ export declare function findBrowserLocale(locales: LocaleObject[], browserLocales: string[], { matcher, comparer }?: { matcher?: BrowserLocaleMatcher; comparer?: LocaleComparer; }): string; export declare function getLocalesRegex(localeCodes: string[]): RegExp; export declare function createLocaleFromRouteGetter(): (route: string | CompatRoute) => string; export {};
修改文件时间
将文件时间修改为当前时间的前一年
删除文件