Skip to content

How to specific locale in one statement without reloading locale for entire app #56

@narumi147

Description

@narumi147

Suppose such a situation, I want to generate a dict. Its keys always be English and values should respond to localization.
We cannot call S.load() to specific locale for keys here. I looked into generated codes, but still have no idea.

Supposed ways to get specific values could be

  • S.ofLocale(Locale('en')).hello
  • S.en.hello

Any idea about how to achieve this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateThis issue or pull request already exists

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions