All files / packages/i18n/src/nuxt config.ts

100% Statements 3/3
100% Branches 0/0
100% Functions 0/0
100% Lines 3/3

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19      4x   4x 4x                        
import type { Locale } from "#core/domain/translations";
import type { VendorConfig } from "#core/registry";
 
export const TRANSLATIONS_API_PATH = "/api/translations";
 
export const TRANSLATIONS_MAX_AGE = 60 * 60;
export const TRANSLATIONS_STALE_MAX_AGE = 60 * 60 * 24;
 
export interface TranslationsConfig {
    vendor: VendorConfig;
    locales: Locale[];
}
 
declare module "@nuxt/schema" {
    interface RuntimeConfig {
        translations: TranslationsConfig;
    }
}