add-locale.d.ts 365 B

123456
  1. /**
  2. * For a given path and a locale, if the locale is given, it will prefix the
  3. * locale. The path shouldn't be an API path. If a default locale is given the
  4. * prefix will be omitted if the locale is already the default locale.
  5. */
  6. export declare function addLocale(path: string, locale?: string | false, defaultLocale?: string, ignorePrefix?: boolean): string;