Complete localization configuration for organizing translation namespaces.

Defines the structure for managing multiple translation namespaces with locale-specific configurations. Enables organized translation management across different features or components of an application.

interface Localization {
    namespaces: {
        [key: string]: {
            locales: {
                [key: string]: LocaleDescriptor;
            };
            basePath: string;
        };
    };
    path: string;
}

Properties

Properties

namespaces: {
    [key: string]: {
        locales: {
            [key: string]: LocaleDescriptor;
        };
        basePath: string;
    };
}

Translation namespaces organized by feature or component. Each namespace contains locale configurations and file paths.

Type declaration

  • [key: string]: {
        locales: {
            [key: string]: LocaleDescriptor;
        };
        basePath: string;
    }
    • locales: {
          [key: string]: LocaleDescriptor;
      }

      Locale-specific configuration for this namespace

      • [key: string]: LocaleDescriptor
    • basePath: string

      Base path for translation files in this namespace

path: string

Root path for the localization configuration