Skip to content

Typescript: locale type Improvement #65

Open
@alex-way

Description

@alex-way
export const { t, locale, locales, loading, loadTranslations } = new i18n(config);

locale exposes a svelte store which is used to get/set the locale throughout the app. However, the type on it is weak (string).

It should be possible to infer the locale Type more strongly using the configuration provided?

Metadata

Metadata

Assignees

No one assigned

    Labels

    baseIssue related to base functionalityenhancementNew feature or requesthelp wantedExtra attention is neededtypescriptIssue related to type definitions

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions