@verbaly/compiler 0.75.0 → 0.76.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -1,5 +1,8 @@
1
- import { RichLink, Routing } from "verbaly";
1
+ import { RichLink, Routing, TrailingSlash } from "verbaly";
2
2
  import MagicString from "magic-string";
3
+ //#region src/host.d.ts
4
+ type Host = 'nuxt' | 'next' | 'sveltekit' | 'astro' | 'vite' | 'webpack' | 'rspack' | 'rollup' | 'esbuild';
5
+ //#endregion
3
6
  //#region src/catalog.d.ts
4
7
  type Catalog = Record<string, string>;
5
8
  type Catalogs = Record<string, Catalog>;
@@ -186,6 +189,7 @@ interface VerbalyConfig {
186
189
  translate?: TranslateConfig;
187
190
  render?: RenderConfig;
188
191
  bundle?: BundleConfig;
192
+ trailingSlash?: TrailingSlash;
189
193
  }
190
194
  interface ResolvedConfig {
191
195
  root: string;
@@ -202,6 +206,8 @@ interface ResolvedConfig {
202
206
  translate: TranslateConfig;
203
207
  render: RenderConfig;
204
208
  bundle: BundleConfig;
209
+ host: Host | undefined;
210
+ trailingSlash: TrailingSlash | undefined;
205
211
  }
206
212
  export declare function resolveConfig(config?: VerbalyConfig): ResolvedConfig;
207
213
  export declare function targetLocales(cfg: ResolvedConfig, override?: string[]): string[];
@@ -344,6 +350,8 @@ interface SyncProjectOptions {
344
350
  interface SyncProjectResult {
345
351
  registry: MessageRegistry;
346
352
  catalogs: Catalogs;
353
+ messages: number;
354
+ inCode: number;
347
355
  added: Record<string, string[]>;
348
356
  replaced: ReplacedText[];
349
357
  pruned: Record<string, string[]>;
@@ -508,9 +516,6 @@ export declare function formatDoctorEntry(entry: DoctorEntry): string;
508
516
  export declare function formatDoctorHealth(result: DoctorResult): string;
509
517
  export declare function doctor(cfg: ResolvedConfig): Promise<DoctorResult>;
510
518
  //#endregion
511
- //#region src/host.d.ts
512
- type Host = 'nuxt' | 'next' | 'sveltekit' | 'astro' | 'vite' | 'webpack' | 'rspack' | 'rollup' | 'esbuild';
513
- //#endregion
514
519
  //#region src/init.d.ts
515
520
  interface InitOptions {
516
521
  root?: string;
@@ -588,5 +593,4 @@ interface RenderSiteResult {
588
593
  export declare function renderSite(cfg: ResolvedConfig, options?: RenderSiteOptions): Promise<RenderSiteResult>;
589
594
  export declare function formatRenderWarnings(result: RenderSiteResult, sourceLocale: string): string[];
590
595
  //#endregion
591
- export type { BrokenEntry, BundleConfig, Catalog, Catalogs, CheckResult, CollisionEntry, DevReporter, DivergentEntry, DoctorEntry, DoctorResult, DraftEntry, Drafts, DtsOptions, ExtraEntry, Finding, Fingerprints, GlossaryEntry, Host, InitOptions, InitResult, IssueSeverity, LocaleStatus, MissingEntry, OutdatedEntry, PluginOptions, RedirectConfig, RenderConfig, RenderSiteOptions, RenderSiteResult, ResolvedConfig, RuntimeModuleOptions, SourceSite, State, StatusResult, StructureIssue, SyncProjectResult, SyncResult, TransformResult, TranslateConfig, TranslateFailure, TranslateOptions, TranslateProgress, TranslateProvider, TranslateRequest, TranslateResult, TranslationWrite, TreeOptions, UnknownEntry, VerbalyConfig, WrapBlocked, WrapEntry, WrapOptions, WrapResult, WrapSkip, WriteDraftsResult };
592
- //# sourceMappingURL=index.d.ts.map
596
+ export type { BrokenEntry, BundleConfig, Catalog, Catalogs, CheckResult, CollisionEntry, DevReporter, DivergentEntry, DoctorEntry, DoctorResult, DraftEntry, Drafts, DtsOptions, ExtraEntry, Finding, Fingerprints, GlossaryEntry, Host, InitOptions, InitResult, IssueSeverity, LocaleStatus, MissingEntry, OutdatedEntry, PluginOptions, RedirectConfig, RenderConfig, RenderSiteOptions, RenderSiteResult, ResolvedConfig, RuntimeModuleOptions, SourceSite, State, StatusResult, StructureIssue, SyncProjectResult, SyncResult, TransformResult, TranslateConfig, TranslateFailure, TranslateOptions, TranslateProgress, TranslateProvider, TranslateRequest, TranslateResult, TranslationWrite, TreeOptions, UnknownEntry, VerbalyConfig, WrapBlocked, WrapEntry, WrapOptions, WrapResult, WrapSkip, WriteDraftsResult };