0.9.18-beta • Published 4 months ago

@aidc-toolkit/core v0.9.18-beta

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
4 months ago

The AIDC Toolkit core package contains artefacts to support other AIDC Toolkit packages; it does not itself provide any of the functionality of the AIDC Toolkit. It is a required dependency for all AIDC Toolkit packages.

Localization

All AIDC Toolkit packages require localization. The localization functionality in this package simplifies initialization and allows packages to share a common internationalization engine, whose initialization is the responsibility of the client application. Packages install their resources as follows in i18n.ts or similar:

import { i18nAddResourceBundle, i18next } from "@aidc-toolkit/core";
import { localeStrings as enLocaleStrings } from "./en/locale_strings.js";

export const packageNS = "aidct_package";

i18nAddResourceBundle("en", packageNS, enLocaleStrings);

export default i18next;

The resource types are declared in i18next.d.ts or similar:

import type { localeStrings } from "./en/locale_strings.js";

declare module "i18next" {
    interface CustomTypeOptions {
        resources: {
            // Extract the type from the English locale strings object.
            aidct_package: typeof localeStrings;
        };
    }
}

Resources

The resource folder contains common resources (e.g., AIDC Toolkit icon) usable by all AIDC Toolkit packages.

0.9.17-beta

8 months ago

0.9.14-beta

8 months ago

0.9.12-beta

8 months ago

0.9.4

11 months ago

0.9.6-beta

11 months ago

0.9.3

11 months ago

0.9.5

11 months ago

0.9.15-beta

8 months ago

0.9.11-beta

9 months ago

0.9.8-beta

10 months ago

0.9.13-beta

8 months ago

0.9.18-beta

4 months ago

0.9.7-beta

11 months ago

0.9.9-beta

10 months ago

0.9.2

11 months ago

0.9.10-beta

10 months ago

0.9.16-beta

8 months ago

0.9.1

1 year ago

0.9.0

1 year ago

0.0.1

1 year ago