@verbaly/compiler 0.74.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,10 +206,14 @@ 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[];
208
- export declare function loadConfig(root: string, overrides?: VerbalyConfig): Promise<ResolvedConfig>;
214
+ export declare function loadConfig(root: string, overrides?: VerbalyConfig, from?: {
215
+ plugin?: boolean;
216
+ }): Promise<ResolvedConfig>;
209
217
  //#endregion
210
218
  //#region src/bundle.d.ts
211
219
  export declare function clientCatalogs(cfg: ResolvedConfig, catalogs: Catalogs): Catalogs;
@@ -342,6 +350,8 @@ interface SyncProjectOptions {
342
350
  interface SyncProjectResult {
343
351
  registry: MessageRegistry;
344
352
  catalogs: Catalogs;
353
+ messages: number;
354
+ inCode: number;
345
355
  added: Record<string, string[]>;
346
356
  replaced: ReplacedText[];
347
357
  pruned: Record<string, string[]>;
@@ -506,9 +516,6 @@ export declare function formatDoctorEntry(entry: DoctorEntry): string;
506
516
  export declare function formatDoctorHealth(result: DoctorResult): string;
507
517
  export declare function doctor(cfg: ResolvedConfig): Promise<DoctorResult>;
508
518
  //#endregion
509
- //#region src/host.d.ts
510
- type Host = 'nuxt' | 'next' | 'sveltekit' | 'astro' | 'vite' | 'webpack' | 'rspack' | 'rollup' | 'esbuild';
511
- //#endregion
512
519
  //#region src/init.d.ts
513
520
  interface InitOptions {
514
521
  root?: string;
@@ -586,5 +593,4 @@ interface RenderSiteResult {
586
593
  export declare function renderSite(cfg: ResolvedConfig, options?: RenderSiteOptions): Promise<RenderSiteResult>;
587
594
  export declare function formatRenderWarnings(result: RenderSiteResult, sourceLocale: string): string[];
588
595
  //#endregion
589
- 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 };
590
- //# 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 };