Skip to content

support multiple localizations at the same time #26

@Claudishe

Description

@Claudishe

Hello,
Thank you for this nice plugin.

Our app uses multiple locale at the same time : a generic user locale (which work fine with this plugin), but also a specific locale in some context (ex : viewing a document in french while the rest of the interface is in english).

Migrating from i18n, I cannot access a specific locale key (eg : $en().hello, $fr().hello).
I have tried with S.load(Locale('fr'), and with Localizations.override(Locale('fr')) with a specific localization context, but it seems the messagelookup always uses the Intl.defaultLocale to do the message lookup.

It would be nice to be able to have a typed access to a locale specific translations (without having to do the untype lookup.

Thank you !

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions